Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.75ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Ajax Cart Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.09 ▼7.61 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.41 ▼7.53 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.89 ▼6.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.40 ▼13.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.63 ▲2.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
wac_notices |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce Ajax Cart Plugin: 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,800 ▲65 | 13.22 ▼1.08 | 1.73 ▼0.22 | 37.68 ▼10.86 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼1.06 | 110.18 ▲9.17 | 43.13 ▼1.11 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.05 | 38.84 ▼1.77 | 34.84 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,514 ▼6 | 17.49 ▼5.60 | 635.95 ▼65.30 | 51.41 ▼15.27 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▲0.03 | 94.00 ▼4.77 | 40.18 ▼6.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wac_notices
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
4 plugin tags: shipping, ajax, cart, woocommerce
woocommerce-ajax-cart/wooajaxcart.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Ajax Cart Plugin" version 1.3.25
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.2")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-ajax-cart.php" instead of "wooajaxcart.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
Success! There were no dangerous files found in this plugin1,075 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 197 | 66 | 859 |
JavaScript | 2 | 54 | 18 | 154 |
CSS | 2 | 11 | 0 | 62 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 3 | 4.55% |
▷ Public methods | 58 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.12% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/assets/youtube.png | 0.27KB | 0.22KB | ▼ 18.25% |
common/assets/alert.png | 0.42KB | 0.45KB | 0.00% |