84% every-page-shopify-cart

Code Review | Every Page Shopify Cart Tab

WordPress plugin Every Page Shopify Cart Tab scored84%from 54 tests.

About plugin

  • Plugin page: every-page-shopif...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Nov 27, 2020
  • Number of updates: 8
  • Update frequency: every 89.5 days
  • Top authors: zerozendesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.03ms] Passed 4 tests

This is a short check of server-side resources used by Every Page Shopify Cart Tab
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.56 ▼10.48
Dashboard /wp-admin3.34 ▲0.0447.21 ▼3.97
Posts /wp-admin/edit.php3.39 ▲0.0446.93 ▼2.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.75 ▼11.51
Media Library /wp-admin/upload.php3.27 ▲0.0435.32 ▲1.56
Shopify Cart Tab Settings /wp-admin/options-general.php?page=shopify-cat-tab-settings3.2432.68

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Every Page Shopify Cart Tab
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲22716.54 ▲1.9661.88 ▲59.9052.63 ▲3.81
Dashboard /wp-admin2,232 ▲445.11 ▼0.77106.78 ▼10.9140.82 ▼2.30
Posts /wp-admin/edit.php2,120 ▲312.30 ▲0.2941.62 ▲3.3234.83 ▲1.53
Add New Post /wp-admin/post-new.php1,531 ▼223.19 ▲0.10671.20 ▲3.8536.31 ▼16.37
Media Library /wp-admin/upload.php1,411 ▲264.56 ▲0.3797.19 ▼1.7044.57 ▲1.24
Shopify Cart Tab Settings /wp-admin/options-general.php?page=shopify-cat-tab-settings1,2022.4362.2025.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/every-page-shopify-cart/every-page-shopify-cart.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (http://nimb.ws/hcydY0), #2 (http://nimb.ws/F6eS3Y)
The official readme.txt might help

every-page-shopify-cart/every-page-shopify-cart.php 92% from 13 tests

The primary PHP file in "Every Page Shopify Cart Tab" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 256 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected254 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1729253
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin