Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.81ms] Passed 4 tests
This is a short check of server-side resources used by Show Current Width
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 43.13 ▲1.53 |
Dashboard /wp-admin | 3.47 ▲0.12 | 47.51 ▼15.34 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.37 ▲6.23 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.41 ▼2.29 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.66 ▲4.86 |
Show Current Width /wp-admin/options-general.php?page=show-current-width | 3.36 | 35.72 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 16 new options
New WordPress options |
---|
show-current-width_breakpoints_limitwidth_max |
theysaidso_admin_options |
show-current-width_admin_show |
can_compress_scripts |
show-current-width_breakpoints_limitwidth |
show-current-width_other_init |
show-current-width_breakpoints_show |
widget_recent-comments |
show-current-width_breakpoints_limitwidth_min |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Show Current Width
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲194 | 14.43 ▼0.28 | 6.42 ▲4.69 | 46.70 ▲3.11 |
Dashboard /wp-admin | 2,199 ▲18 | 5.62 ▲0.03 | 89.74 ▼18.35 | 38.32 ▼3.32 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.00 | 40.23 ▲2.67 | 37.68 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.02 ▼0.28 | 613.43 ▲14.86 | 56.02 ▲6.41 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.01 | 97.69 ▼1.97 | 42.65 ▲1.83 |
Show Current Width /wp-admin/options-general.php?page=show-current-width | 926 | 2.00 | 22.25 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 16 options
- show-current-width_condition_role
- widget_recent-comments
- show-current-width_other_uninstall
- show-current-width_breakpoints_limitwidth_min
- show-current-width_breakpoints_definition
- show-current-width_animation_show
- db_upgraded
- show-current-width_breakpoints_limitwidth
- show-current-width_breakpoints_show
- show-current-width_other_init
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: design, admin, developement, width
show-current-width/w83-show-current-width.php 85% from 13 tests
The entry point to "Show Current Width" version 1.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("6.2" instead of "6.0")
- Main file name: Name the main plugin file the same as the plugin slug ("show-current-width.php" instead of "w83-show-current-width.php")
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
Everything looks great! No dangerous files found in this plugin894 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 228 | 634 |
Sass | 1 | 2 | 30 | 101 |
JavaScript | 2 | 14 | 2 | 88 |
CSS | 2 | 1 | 0 | 71 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 2 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.17MB with 0.75MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 496.55KB | 167.28KB | ▼ 66.31% |
screenshot-3.png | 204.79KB | 65.24KB | ▼ 68.14% |
screenshot-1.png | 496.08KB | 203.00KB | ▼ 59.08% |