Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/sales-popup-for-woocommerce/includes/class.api.php+65
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼58.60ms] Passed 4 tests
This is a short check of server-side resources used by Sales Popup for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.78 ▼50.12 |
Dashboard /wp-admin | 2.10 ▼1.21 | 11.47 ▼52.07 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 8.21 ▼45.59 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.21 ▼86.60 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 8.04 ▼30.15 |
Sales Popups /wp-admin/admin.php?page=wtsales-options | 2.10 | 10.23 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/sales-popup-for-woocommerce/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sales Popup for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.60 ▼0.77 | 4.12 ▲2.41 | 39.66 ▼6.31 |
Dashboard /wp-admin | 2,256 ▲53 | 5.81 ▼0.05 | 100.95 ▼14.95 | 38.82 ▼4.04 |
Posts /wp-admin/edit.php | 2,099 ▼1 | 2.00 ▲0.01 | 36.72 ▼3.12 | 35.43 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.39 ▲5.66 | 683.40 ▲22.39 | 58.45 ▲0.52 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.20 ▲0.04 | 98.73 ▼9.07 | 42.32 ▼3.88 |
Sales Popups /wp-admin/admin.php?page=wtsales-options | 1,423 | 2.16 | 28.31 | 42.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/sales-popup-for-woocommerce/includes/class.api.php+65
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wtsales-options
- > Deprecated in wp-content/plugins/sales-popup-for-woocommerce/includes/class.api.php+106
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=wtsales-options
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: increase, sales, woocommerce
sales-popup-for-woocommerce/sales-popup-for-woocommerce.php 92% from 13 tests
The main PHP script in "Sales Popup for Woocommerce" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,120 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 564 | 12 | 3,163 |
PHP | 5 | 73 | 12 | 735 |
PO File | 1 | 66 | 67 | 161 |
JavaScript | 1 | 4 | 1 | 61 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 61.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 38.10% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wordpress-org/banner-1880x609.png | 37.08KB | 13.95KB | ▼ 62.38% |
wordpress-org/icon-256x256.png | 3.16KB | 1.73KB | ▼ 45.31% |
wordpress-org/icon-128x128.png | 1.60KB | 0.93KB | ▼ 41.50% |
wordpress-org/banner-772x250.png | 13.59KB | 5.30KB | ▼ 61.01% |
wordpress-org/banner-1544x500.png | 30.11KB | 11.52KB | ▼ 61.74% |