Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.09ms] Passed 4 tests
Analyzing server-side resources used by CoCart - Cart Enhanced
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.50 ▼4.14 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.77 ▼6.52 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.17 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.92 ▼5.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.10 ▲0.27 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CoCart - Cart Enhanced
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.42 | 1.75 ▲0.18 | 42.50 ▲6.60 |
Dashboard /wp-admin | 2,206 ▲20 | 4.85 ▼0.10 | 109.46 ▲3.62 | 43.11 ▼2.10 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 38.98 ▲2.96 | 33.52 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.46 ▲0.22 | 575.54 ▼74.16 | 46.82 ▼4.64 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.02 | 95.04 ▼0.92 | 40.61 ▼5.88 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cocart-get-cart-enhanced/includes/filters/filter-v1.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cocart-get-cart-enhanced/includes/filters/filter-v2.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cocart-get-cart-enhanced/includes/filters/filter-v2-preview.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: cart, woocommerce, headless, decoupled, rest-api...
cocart-get-cart-enhanced/cocart-get-cart-enhanced.php Passed 13 tests
The entry point to "CoCart - Cart Enhanced" version 4.0.1 is a PHP file that has certain tags in its header comment area
56 characters long description:
Enhances the cart response to return additional details.
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
No dangerous file extensions were detected754 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 245 | 569 | 754 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.47 |
▷ 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 | 1 | 25.00% |
Methods | 34 | |
▷ Static methods | 13 | 38.24% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 2 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected