Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼296.54ms] Passed 4 tests
A check of server-side resources used by Browser Update Ribbon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.49 | 62.02 ▲3.32 |
Dashboard /wp-admin | 3.48 ▲0.07 | 37.97 ▼0.79 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 43.24 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 99.55 ▼1,185.67 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 23.28 ▼2.02 |
Update Ribbon /wp-admin/options-general.php?page=browser_update_ribbon_options | 3.36 | 28.97 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Browser Update Ribbon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.88 ▲0.17 | 6.63 ▲0.80 | 2.43 ▼0.21 |
Dashboard /wp-admin | 2,893 ▲32 | 6.14 ▼0.07 | 114.10 ▼24.25 | 154.76 ▼6.09 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.01 | 64.44 ▼4.80 | 142.37 ▼6.89 |
Add New Post /wp-admin/post-new.php | 1,766 ▲55 | 19.06 ▼2.23 | 388.65 ▼57.87 | 151.55 ▼6.54 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.48 ▼0.05 | 157.18 ▲22.79 | 191.43 ▼3.14 |
Update Ribbon /wp-admin/options-general.php?page=browser_update_ribbon_options | 1,692 | 4.27 | 68.43 | 145.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/browser-update-ribbon/browser_update_ribbon.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #3 in browser-update-ribbon/assets to your readme.txt
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
browser-update-ribbon/browser_update_ribbon.php 85% from 13 tests
Analyzing the main PHP file in "Browser Update Ribbon" version 1.4.3
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
- Main file name: The principal plugin file should be the same as the plugin slug ("browser-update-ribbon.php" instead of "browser_update_ribbon.php")
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
Success! There were no dangerous files found in this plugin1,284 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 151 | 351 | 1,133 |
PO File | 1 | 40 | 42 | 110 |
JavaScript | 1 | 6 | 0 | 41 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 141.00 |
▷ Minimum class complexity | 141.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 32.31% |
▷ Protected methods | 44 | 67.69% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 1 | 1.72% |
▷ Class constants | 57 | 98.28% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
default_ribbon_top.png | 11.72KB | 5.69KB | ▼ 51.43% |
default_ribbon_bottom.png | 12.23KB | 5.86KB | ▼ 52.09% |