10% ade-cart-manager

Code Review | Ade Cart Manager

WordPress plugin Ade Cart Manager scored 10% from 54 tests.

About plugin

  • Plugin page: ade-cart-manager
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.9
  • WordPress version: 5.9.2
  • First release: Mar 8, 2022
  • Latest release: Mar 17, 2022
  • Number of updates: 16
  • Update frequency: every 0.6 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 81 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method ADECARTMANAGER::activation() should not be called statically

Server metrics [RAM: ▼1.16MB] [CPU: ▼323.31ms] Passed 4 tests

Analyzing server-side resources used by Ade Cart Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.22 ▼0.2921.05 ▼31.40
Dashboard /wp-admin3.23 ▼0.1818.09 ▼14.89
Posts /wp-admin/edit.php3.23 ▼0.4118.42 ▼19.03
Add New Post /wp-admin/post-new.php3.23 ▼3.7418.04 ▼1,227.92
Media Library /wp-admin/upload.php3.23 ▼0.0715.64 ▼7.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 1 new option
New tables
wp_ade_user_cart_data
New WordPress options
ade_cart_manager_enable_popup

Browser metrics Passed 4 tests

Checking browser requirements for Ade Cart Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲6216.21 ▲0.536.76 ▲1.102.24 ▼0.08
Dashboard /wp-admin2,904 ▲466.12 ▼0.09117.74 ▼14.43151.85 ▼9.95
Posts /wp-admin/edit.php2,706 ▲123.25 ▲0.0162.34 ▼0.05135.63 ▼4.78
Add New Post /wp-admin/post-new.php1,671 ▲417.17 ▼2.02400.28 ▲17.58155.51 ▲5.34
Media Library /wp-admin/upload.php1,716 ▲185.54 ▲0.02134.30 ▼6.66186.32 ▼0.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method ADEDASHBOARD::adecartmanagermenu() should not be called statically
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_ade_user_cart_data
  • Zombie WordPress options detected upon uninstall: 1 option
    • ade_cart_manager_enable_popup

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ade-cart-manager/inc/ade-dashboard-data.php:757
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ade-cart-manager/inc/ade-search.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ade-cart-manager/inc/ade-dashboard.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in ade-cart-manager/assets to your readme.txt
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

ade-cart-manager/ade-cart-manager.php Passed 13 tests

The main PHP script in "Ade Cart Manager" version 1.4.3 is automatically included on every request by WordPress
34 characters long description:
Track and recover users cart items

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
Good job! No executable or dangerous file extensions detected1,452 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51051131,278
JavaScript1311173
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.33
▷ Minimum class complexity6.00
▷ Maximum class complexity35.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods416.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected