10% ade-cart-manager

Code Review | Ade Cart Manager

WordPress plugin Ade Cart Manager scored10%from 54 tests.

About plugin

  • Plugin page: ade-cart-manager
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2022
  • Latest release: Apr 4, 2023
  • Number of updates: 19
  • Update frequency: every 20.6 days
  • Top authors: biggidroid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /391 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method ADECARTMANAGER::activation() should not be called statically

Server metrics [RAM: ▼1.04MB] [CPU: ▼37.99ms] Passed 4 tests

Server-side resources used by Ade Cart Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6320.46 ▼18.76
Dashboard /wp-admin3.01 ▼0.2931.45 ▼19.37
Posts /wp-admin/edit.php3.01 ▼0.3523.28 ▼29.83
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.13 ▼83.99
Media Library /wp-admin/upload.php3.01 ▼0.2221.49 ▼13.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_ade_user_cart_data
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
ade_cart_manager_enable_popup

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ade Cart Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.21 ▼0.442.16 ▲0.4245.38 ▲0.65
Dashboard /wp-admin2,207 ▲275.68 ▲0.0896.65 ▲8.5041.77 ▼2.99
Posts /wp-admin/edit.php2,109 ▲92.01 ▲0.0135.94 ▼1.2133.85 ▼2.42
Add New Post /wp-admin/post-new.php1,541 ▲1323.41 ▲0.62659.43 ▼10.2749.72 ▼2.11
Media Library /wp-admin/upload.php1,409 ▲94.15 ▲0.06104.70 ▼2.3443.50 ▼0.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method ADEDASHBOARD::adecartmanagermenu() should not be called statically
  • Zombie tables were found after uninstall: 1 table
    • wp_ade_user_cart_data
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • ade_cart_manager_enable_popup
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3 in ade-cart-manager/assets to your readme.txt
The official readme.txt might help

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

The main PHP file in "Ade Cart Manager" ver. 1.4.5 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Track and recover users cart items

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,462 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5981171,288
JavaScript1311173
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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
There are no PNG files in this plugin