Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.98ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Modal Fly Cart + Ajax add to cart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.68 ▲1.29 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.82 ▼18.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.11 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.39 ▼14.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.72 ▲3.71 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Modal Fly Cart + Ajax add to cart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.37 ▼0.28 | 1.94 ▼0.13 | 43.81 ▼0.83 |
Dashboard /wp-admin | 2,218 ▲41 | 5.68 ▲0.11 | 85.14 ▼7.55 | 43.93 ▲3.63 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.19 ▲0.16 | 36.66 ▼3.23 | 41.55 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 17.45 ▼5.99 | 656.00 ▼51.45 | 56.82 ▼1.24 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.22 ▲0.03 | 113.19 ▲2.69 | 50.38 ▲5.24 |
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: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Plugins Options), #2 (preview screen 1), #3 (preview screen 2)
woocomm-popup-cart-ajax/woocommerce-modal-fly-cart.php 85% from 13 tests
The entry point to "WooCommerce Modal Fly Cart + Ajax add to cart" version 1.5.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.6")
- Main file name: Name the main plugin file the same as the plugin slug ("woocomm-popup-cart-ajax.php" instead of "woocommerce-modal-fly-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,728 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 541 | 88 | 2,938 |
PO File | 8 | 448 | 504 | 1,008 |
PHP | 4 | 258 | 157 | 890 |
CSS | 5 | 81 | 51 | 866 |
SVG | 1 | 14 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 3 | 8.82% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.58MB with 0.39MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 212.39KB | 52.80KB | ▼ 75.14% |
screenshot-0.png | 101.20KB | 50.78KB | ▼ 49.82% |
screenshot-1.png | 283.24KB | 71.94KB | ▼ 74.60% |