Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.77ms] Passed 4 tests
A check of server-side resources used by Outstanding Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.11 ▼2.62 |
Dashboard /wp-admin | 3.33 ▼0.01 | 50.32 ▼12.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.14 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 78.73 ▼21.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.27 ▲4.11 |
Outstanding Bar /wp-admin/options-general.php?page=outstanding-bar | 3.22 | 30.26 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
outstandingbar_version |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
outstandingBar_settings |
Browser metrics Passed 4 tests
Outstanding Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲169 | 13.61 ▼1.07 | 9.29 ▲7.54 | 37.72 ▼5.55 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.08 | 112.73 ▼0.07 | 43.22 ▼0.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 32.82 ▼5.42 | 35.98 ▲4.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.13 ▼0.04 | 639.36 ▼24.53 | 56.07 ▲0.11 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▼0.03 | 95.07 ▼1.42 | 40.79 ▼2.19 |
Outstanding Bar /wp-admin/options-general.php?page=outstanding-bar | 1,275 | 2.50 | 69.43 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- outstandingbar_version
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outstanding-bar/options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Contrast\\register_activation_hook() in wp-content/plugins/outstanding-bar/outstandingbar.php:28
- > PHP Fatal error
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: newsletter, email signup, mailchimp, newsletter signup, email
outstanding-bar/outstandingbar.php 85% from 13 tests
The primary PHP file in "Outstanding Bar" version 1.1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("outstanding-bar.php" instead of "outstandingbar.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected626 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 53 | 480 |
JavaScript | 2 | 27 | 32 | 136 |
SVG | 1 | 0 | 0 | 8 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 48.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 51.22% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin