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.05MB] [CPU: ▼12.46ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Custom Overlays
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.56 ▼5.72 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.51 ▼20.69 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 52.64 ▼6.98 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.25 ▼16.46 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 38.40 ▲3.53 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Custom Overlays
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.83 ▼0.76 | 9.28 ▲7.25 | 38.67 ▼5.24 |
Dashboard /wp-admin | 2,197 ▲20 | 5.65 ▼0.02 | 92.67 ▼1.80 | 41.96 ▲1.23 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 1.99 ▼0.02 | 40.02 ▼1.28 | 38.00 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.02 ▼0.50 | 638.22 ▲6.61 | 53.30 ▼0.64 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.21 ▲0.04 | 101.02 ▼5.20 | 43.51 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-custom-overlays/woo-custom-overlays.php
- > /wp-content/plugins/woo-custom-overlays/inc/script-styles.php
- > /wp-content/plugins/woo-custom-overlays/admin/woo-settings-tab.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (#1), #2 (#2), #3 (#3), #4 (#4), #5 (#5), #6 (#6)
woo-custom-overlays/woo-custom-overlays.php 92% from 13 tests
The primary PHP file in "WooCommerce Custom Overlays" version 2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin432 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 127 | 175 | 404 |
CSS | 1 | 6 | 2 | 26 |
JavaScript | 1 | 2 | 3 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sign-pin.png | 35.33KB | 12.04KB | ▼ 65.92% |
assets/sold-out-banner.png | 49.84KB | 47.08KB | ▼ 5.54% |