Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.82ms] Passed 4 tests
Analyzing server-side resources used by Rusty Top Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.37 ▲8.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.57 ▼3.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.47 ▼5.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.12 ▲1.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.38 ▲0.44 |
Rusty Top Bar /wp-admin/tools.php?page=rusty-topbar | 3.21 | 34.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Rusty Top Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.70 ▼0.67 | 1.81 ▲0.10 | 42.75 ▲2.50 |
Dashboard /wp-admin | 2,210 ▲58 | 5.86 ▲0.21 | 107.22 ▲2.83 | 41.55 ▼1.21 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▲0.02 | 39.39 ▲5.82 | 34.07 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.25 ▲0.39 | 597.02 ▼64.92 | 59.92 ▲5.47 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.15 ▼0.05 | 95.25 ▼11.47 | 41.02 ▼6.09 |
Rusty Top Bar /wp-admin/tools.php?page=rusty-topbar | 1,097 | 2.22 | 49.16 | 27.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rusty-top-bar/rusty-topbar.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: top, message, topbar, notification, bar
rusty-top-bar/rusty-topbar.php 92% from 13 tests
This is the main PHP file of "Rusty Top Bar" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rusty-top-bar.php" instead of "rusty-topbar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin188 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 105 | 27 | 177 |
CSS | 1 | 1 | 0 | 6 |
JavaScript | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 18.17KB | 7.24KB | ▼ 60.15% |
screenshot-1.png | 31.40KB | 12.32KB | ▼ 60.76% |