Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.43ms] Passed 4 tests
Server-side resources used by Remove Cart Products
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.12 ▼5.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 61.03 ▼6.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.15 ▼1.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.92 ▼23.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.79 ▼1.10 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/remove-cart-products/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Remove Cart Products
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.27 ▼0.72 | 5.29 ▲3.50 | 38.63 ▼4.88 |
Dashboard /wp-admin | 2,221 ▲18 | 5.85 ▼0.04 | 103.46 ▼16.91 | 42.52 ▼0.07 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.02 | 36.30 ▼5.05 | 33.11 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.72 ▲0.20 | 698.65 ▲28.61 | 52.63 ▼13.42 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▲0.04 | 101.48 ▼12.61 | 45.42 ▼1.48 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | 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
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/remove-cart-products/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/remove-cart-products/templates/remove-cart-product-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/remove-cart-products/remove-cart-products.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/remove-cart-products/templates/footer-button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-cart-products/functions.php:10
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/remove-cart-products/templates/admin-setting_option.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/remove-cart-products/templates/admin-setting_option.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/remove-cart-products/templates/form-file.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Donate link: Invalid URI found ("")
remove-cart-products/remove-cart-products.php 92% from 13 tests
The primary PHP file in "Remove Cart Products" version 1.0.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,197 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 343 | 353 | 1,018 |
PHP | 8 | 90 | 35 | 898 |
CSS | 1 | 41 | 17 | 238 |
JavaScript | 2 | 7 | 0 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin