Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼288.18ms] Passed 4 tests
This is a short check of server-side resources used by WP-TopBar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.24 | 60.80 ▲8.07 |
Dashboard /wp-admin | 3.71 ▲0.30 | 36.13 ▲0.65 |
Posts /wp-admin/edit.php | 3.93 ▲0.29 | 39.72 ▲0.78 |
Add New Post /wp-admin/post-new.php | 7.17 ▲0.20 | 97.21 ▼1,156.38 |
Media Library /wp-admin/upload.php | 3.59 ▲0.29 | 24.82 ▲2.22 |
Server storage [IO: ▲3.56MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 171 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_wp_topbar_data |
New WordPress options |
---|
wptb_db_version |
wptb_global_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP-TopBar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,963 ▲210 | 16.17 ▲1.08 | 8.72 ▲2.35 | 2.86 ▲0.43 |
Dashboard /wp-admin | 2,950 ▲96 | 6.22 ▲0.06 | 117.91 ▼28.32 | 178.80 ▲11.56 |
Posts /wp-admin/edit.php | 2,744 ▲50 | 3.05 ▼0.31 | 66.80 ▲1.39 | 157.37 ▲12.69 |
Add New Post /wp-admin/post-new.php | 1,698 ▲37 | 22.05 ▲5.25 | 390.72 ▼14.51 | 186.45 ▲29.23 |
Media Library /wp-admin/upload.php | 1,756 ▲58 | 5.49 ▼0.04 | 123.46 ▼19.34 | 197.62 ▲11.49 |
Global Settings /wp-admin/wp-topbar.php&action=globalsettings | 26 | 0.94 | 0.04 | 19.76 |
FAQ /wp-admin/wp-topbar.php&action=mainfaq | 26 | 0.94 | 0.03 | 14.82 |
Export Options /wp-admin/wp-topbar.php&action=export | 26 | 0.94 | 0.07 | 14.88 |
Test Priority /wp-admin/wp-topbar.php&action=testpriority | 26 | 0.94 | 0.03 | 14.77 |
Close Button /wp-admin/wp-topbar.php&action=bulkclosebutton | 26 | 0.94 | 0.05 | 14.50 |
All TopBars /wp-admin/wp-topbar.php&action=table | 26 | 0.94 | 0.04 | 14.99 |
WP TopBar /wp-admin/wp-topbar.php | 26 | 0.94 | 0.04 | 15.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wp_topbar_data
- This plugin did not uninstall successfully, leaving 2 options in the database
- wptb_global_options
- wptb_db_version
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-topbar/lib/SAMPLE_wptb_custom_default_values.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-topbar/wp-topbar.php:42
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/wp-topbar.php&action=globalsettings
- > Network (severe)
wp-admin/wp-topbar.php&action=globalsettings - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php&action=mainfaq
- > Network (severe)
wp-admin/wp-topbar.php&action=mainfaq - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php&action=export
- > Network (severe)
wp-admin/wp-topbar.php&action=export - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php&action=testpriority
- > Network (severe)
wp-admin/wp-topbar.php&action=testpriority - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php&action=bulkclosebutton
- > Network (severe)
wp-admin/wp-topbar.php&action=bulkclosebutton - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php&action=table
- > Network (severe)
wp-admin/wp-topbar.php&action=table - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-topbar.php
- > Network (severe)
wp-admin/wp-topbar.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is how it will look on your website), #2 (All TopBars Screen), #3 (Sample TopBar Screen), #4 (Export Options Screen), #5 (Main Options Screen for a single TopBar)
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-topbar ===
)
wp-topbar/wp-topbar.php 92% from 13 tests
The main PHP file in "WP-TopBar" ver. 5.36 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,414 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,552 | 531 | 6,279 |
PO File | 5 | 2,190 | 4,316 | 5,665 |
JavaScript | 10 | 474 | 508 | 3,350 |
SVG | 1 | 0 | 0 | 78 |
CSS | 5 | 14 | 12 | 41 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.38 |
Average class complexity | 167.00 |
▷ Minimum class complexity | 167.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 7.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 26 | |
▷ Static methods | 25 | 96.15% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
106 PNG files occupy 1.57MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/samples/filmstrip.png | 10.47KB | 4.90KB | ▼ 53.21% |
lib/icons/PNG/delicious.png | 3.23KB | 2.64KB | ▼ 18.11% |
lib/icons/PNG/google.png | 5.44KB | 2.96KB | ▼ 45.57% |
lib/icons/PNG/deviantart.png | 4.47KB | 2.88KB | ▼ 35.53% |
lib/samples/blue_clouds.png | 16.71KB | 6.04KB | ▼ 63.88% |