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.81MB] [CPU: ▲3.33ms] Passed 4 tests
This is a short check of server-side resources used by Standard Box Sizes - for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.83 | 40.73 ▼3.66 |
Dashboard /wp-admin | 4.13 ▲0.82 | 50.65 ▲2.86 |
Posts /wp-admin/edit.php | 4.18 ▲0.82 | 58.16 ▲11.68 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 95.40 ▲11.19 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 39.83 ▲2.92 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Standard Box Sizes - for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲40 | 14.71 ▲0.36 | 1.64 ▼0.40 | 37.01 ▼5.77 |
Dashboard /wp-admin | 2,207 ▲30 | 5.69 ▲0.01 | 94.86 ▼4.92 | 44.51 ▲6.94 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▲0.08 | 43.16 ▼0.01 | 38.82 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.46 ▼0.08 | 606.68 ▼75.94 | 56.11 ▲2.02 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.27 ▼0.01 | 101.21 ▲4.84 | 40.46 ▲0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
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 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2, #3 in standard-box-sizes/assets to your readme.txt
standard-box-sizes/en-standard-box-sizes.php 69% from 13 tests
The main PHP file in "Standard Box Sizes - for WooCommerce" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "6.4")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("standard-box-sizes.php" instead of "en-standard-box-sizes.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,296 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,209 | 29 | 6,324 |
PHP | 21 | 684 | 946 | 3,986 |
JavaScript | 1 | 176 | 206 | 986 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 6.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 140 | 97.90% |
▷ Protected methods | 3 | 2.10% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/boxes/Envelope-172x115.png | 10.20KB | 6.29KB | ▼ 38.35% |
admin/assets/images/boxes/Small-Box-151x115.png | 16.24KB | 8.33KB | ▼ 48.74% |
admin/assets/images/boxes/Large-Box-146x115.png | 15.84KB | 7.97KB | ▼ 49.69% |
admin/assets/images/boxes/Extra-Large-Box-103x115.png | 13.19KB | 6.52KB | ▼ 50.58% |
admin/assets/images/boxes/Medium-Box-148x115.png | 16.37KB | 8.55KB | ▼ 47.78% |