Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.63ms] Passed 4 tests
A check of server-side resources used by Enhanced AJAX Add to Cart for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.21 ▼2.85 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.21 ▼2.08 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.87 ▲6.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.33 ▼2.01 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.82 ▲0.42 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Enhanced AJAX Add to Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.30 ▼1.05 | 1.57 ▼0.81 | 40.35 ▼2.42 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.07 | 107.06 ▼0.83 | 46.59 ▼1.86 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.01 | 39.38 ▲1.72 | 37.38 ▲5.66 |
Add New Post /wp-admin/post-new.php | 6,425 ▲4,882 | 20.87 ▲2.81 | 916.16 ▲301.43 | 54.61 ▼4.62 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.09 | 103.94 ▼2.18 | 44.52 ▼5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'TRS\\EAA2C\\Abstract_Button' not found in wp-content/plugins/enhanced-ajax-add-to-cart-for-woocommerce/src/class-eaa2c-single.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: ajax button, ajax add to cart, add to cart, block, shortcode...
enhanced-ajax-add-to-cart-for-woocommerce/enhanced-ajax-add-to-cart-wc.php 77% from 13 tests
Analyzing the main PHP file in "Enhanced AJAX Add to Cart for WooCommerce" version 2.3.0
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.8.1" instead of "3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enhanced-ajax-add-to-cart-for-woocommerce.php" instead of "enhanced-ajax-add-to-cart-wc.php")
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
There were no executable files found in this plugin4,724 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 36 | 325 | 625 | 2,766 |
PHP | 19 | 298 | 746 | 1,742 |
CSS | 4 | 50 | 29 | 216 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 20.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 11 | 16.18% |
▷ Public methods | 54 | 79.41% |
▷ Protected methods | 7 | 10.29% |
▷ Private methods | 7 | 10.29% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin