Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/show-useragent/browser.php+3
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.95MB] [CPU: ▼33.91ms] Passed 4 tests
A check of server-side resources used by Show UserAgent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.54 ▲3.57 |
Dashboard /wp-admin | 3.00 ▼0.31 | 23.74 ▼24.85 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 23.01 ▼24.31 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.11 ▼78.43 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 22.98 ▼8.05 |
Show-UserAgent /wp-admin/options-general.php?page=show-useragent/options.php | 3.00 | 21.45 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 464 new files
Database: no new tables, 7 new options
New WordPress options |
---|
CID_options |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Show UserAgent
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.60 ▼0.92 | 4.80 ▲3.13 | 41.20 ▲0.34 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.06 | 104.89 ▲2.55 | 39.50 ▲0.51 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.01 | 38.53 ▼3.16 | 36.46 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.20 ▲5.73 | 648.20 ▲22.97 | 59.47 ▲6.65 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.22 ▼0.03 | 102.37 ▲0.73 | 44.40 ▼1.18 |
Show-UserAgent /wp-admin/options-general.php?page=show-useragent/options.php | 1,083 | 2.05 | 23.33 | 35.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- CID_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=show-useragent/options.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=show-useragent/options.php
- > Notice in wp-content/plugins/show-useragent/options.php+3
Undefined index: mode
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
Please fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/show-useragent/options.php:76
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/show-useragent/show-useragent.php on line 12
- > PHP Notice
Undefined variable: CID_options in wp-content/plugins/show-useragent/browser.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/show-useragent/browser.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/show-useragent/show-useragent.php:15
- > PHP Notice
Undefined index: mode in wp-content/plugins/show-useragent/options.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Display on comment list.), #2 (Configure on /wp-admin/)
show-useragent/show-useragent.php Passed 13 tests
The entry point to "Show UserAgent" version 1.0.9 is a PHP file that has certain tags in its header comment area
98 characters long description:
Show visitors' IP to Country Flag, Web Browser, Operating System icons on WordPreess comment list.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
It is important to fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/show-useragent/ip2c/ip-to-country.bin
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 131 | 33 | 1,558 |
PO File | 1 | 24 | 38 | 71 |
CSS | 1 | 0 | 0 | 4 |
HTML | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
447 compressed PNG files occupy 0.41MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/lk.png | 0.61KB | 0.72KB | 0.00% |
flags/tj.png | 0.48KB | 0.58KB | 0.00% |
flags/ki.png | 0.64KB | 0.74KB | 0.00% |
browsers/msie-mobile.png | 0.71KB | 1.00KB | 0.00% |
browsers/sony-psp.png | 0.67KB | 0.83KB | 0.00% |