Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.53ms] Passed 4 tests
A check of server-side resources used by Dynamic Cart Messages for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.66 ▼3.15 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.50 ▼1.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.27 ▼4.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.19 ▼12.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.00 ▲0.83 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Dynamic Cart Messages for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.11 | 1.68 ▲0.09 | 43.69 ▲2.73 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.07 | 93.60 ▲4.28 | 46.93 ▲6.78 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.02 | 34.00 ▼1.13 | 34.23 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.12 ▼0.24 | 675.72 ▲3.75 | 53.96 ▼8.74 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▲0.05 | 97.34 ▼8.51 | 44.57 ▼3.63 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-cart-messages-woocommerce/includes/dcmp-settings.php:257
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-cart-messages-woocommerce/includes/dcmp-functions.php:194
- > 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 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
dynamic-cart-messages-woocommerce/dynamic-cart-messages-woocommerce.php 92% from 13 tests
"Dynamic Cart Messages for WooCommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
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
Success! There were no dangerous files found in this plugin1,048 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 152 | 192 | 864 |
CSS | 3 | 14 | 16 | 114 |
JavaScript | 1 | 17 | 10 | 70 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 1 | |
▷ Global constants | 1 | 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
6 PNG files occupy 0.78MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-3.png | 161.77KB | 56.30KB | ▼ 65.20% |
assets/images/screenshot-1.png | 107.20KB | 35.76KB | ▼ 66.64% |
assets/images/screenshot-6.png | 91.87KB | 31.94KB | ▼ 65.23% |
assets/images/screenshot-4.png | 171.53KB | 62.21KB | ▼ 63.73% |
assets/images/screenshot-2.png | 160.14KB | 57.54KB | ▼ 64.07% |