Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.08ms] Passed 4 tests
Analyzing server-side resources used by WPC AJAX Add to Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.11 ▲0.23 |
Dashboard /wp-admin | 3.43 ▲0.12 | 46.85 ▲1.19 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.14 ▲1.52 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.85 ▲4.61 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.71 ▲1.37 |
About /wp-admin/admin.php?page=wpclever | 3.32 | 33.88 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.32 | 32.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WPC AJAX Add to Cart for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲97 | 14.35 ▲0.03 | 1.59 ▼0.08 | 44.16 ▼2.28 |
Dashboard /wp-admin | 2,255 ▲75 | 5.54 ▼0.12 | 92.55 ▼0.97 | 65.53 ▲24.71 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.00 ▲0.03 | 37.61 ▲0.17 | 34.23 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 24.80 ▲1.55 | 711.71 ▲117.31 | 60.83 ▲14.05 |
Media Library /wp-admin/upload.php | 1,469 ▲72 | 4.15 ▼0.03 | 100.13 ▼0.26 | 69.55 ▲24.03 |
About /wp-admin/admin.php?page=wpclever | 1,400 | 2.10 | 36.99 | 34.71 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,510 | 1.19 | 34.93 | 61.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 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: add-to-cart, ajax, wpc, woocommerce, add to cart...
wpc-ajax-add-to-cart/wpc-ajax-add-to-cart.php Passed 13 tests
The entry point to "WPC AJAX Add to Cart for WooCommerce" version 1.6.5 is a PHP file that has certain tags in its header comment area
42 characters long description:
AJAX add to cart for WooCommerce products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,275 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 90 | 22 | 629 |
CSS | 3 | 75 | 6 | 406 |
JavaScript | 4 | 35 | 8 | 211 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 29 | |
▷ Static methods | 3 | 10.34% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 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