Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.08ms] Passed 4 tests
A check of server-side resources used by Ajax mini cart for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.02 ▲0.54 |
Dashboard /wp-admin | 3.45 ▲0.10 | 48.61 ▼10.59 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.97 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.10 ▼10.58 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.31 ▲1.69 |
Ajax Mini Cart /wp-admin/tools.php?page=ajax-mini-cart | 3.34 | 34.26 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ajax mini cart for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.55 ▼0.80 | 9.23 ▲7.60 | 46.82 ▲8.65 |
Dashboard /wp-admin | 2,218 ▲41 | 5.88 ▲0.35 | 85.52 ▼5.84 | 37.85 ▼2.05 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.27 ▲0.25 | 35.02 ▼5.55 | 33.93 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 18.58 ▼4.39 | 610.73 ▼45.32 | 49.46 ▼3.50 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.46 ▲0.24 | 100.55 ▲3.95 | 44.26 ▲3.02 |
Ajax Mini Cart /wp-admin/tools.php?page=ajax-mini-cart | 987 | 2.31 | 39.17 | 25.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zt-ajax-mini-cart/src/zt-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zt-ajax-mini-cart/src/zt-front-end.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zt-ajax-mini-cart/src/zt-enqueue.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zt-ajax-mini-cart/assets/css/custom.css.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: ajax mini cart, woocommerce, woocommerce mini cart, mini cart, ajax cart
zt-ajax-mini-cart/zt-ajax-mini-cart.php Passed 13 tests
Analyzing the main PHP file in "Ajax mini cart for Woocommerce" version 1.0.2
82 characters long description:
Ajax mini cart for woocommerce by Artem Koliada. Adds ajax mini cart to your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,031 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 121 | 50 | 519 |
Sass | 3 | 49 | 0 | 313 |
JavaScript | 4 | 44 | 21 | 182 |
JSON | 1 | 0 | 0 | 16 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected