Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.69ms] Passed 4 tests
A check of server-side resources used by Oh My Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.99 ▼3.02 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.84 ▼0.10 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.38 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.33 ▼8.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 40.66 ▲3.94 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Oh My Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲240 | 13.58 ▼0.77 | 8.39 ▲6.84 | 41.58 ▲0.23 |
Dashboard /wp-admin | 2,321 ▲150 | 5.67 ▲0.10 | 96.08 ▲10.75 | 43.80 ▲1.58 |
Posts /wp-admin/edit.php | 2,226 ▲123 | 2.14 ▲0.08 | 42.01 ▲1.07 | 36.55 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,636 ▲110 | 23.11 ▲0.15 | 676.93 ▲19.57 | 39.25 ▼19.21 |
Media Library /wp-admin/upload.php | 1,526 ▲126 | 4.50 ▲0.29 | 98.29 ▼3.19 | 42.25 ▲2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oh-my-bar/public/inc/oh-my-bar-public-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oh-my-bar/admin/inc/class-read-bar.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oh-my-bar/admin/inc/class-menu.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: bar, notification bar, floating bar, sticky bar, top bar
oh-my-bar/oh-my-bar.php 92% from 13 tests
The primary PHP file in "Oh My Bar" version 0.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,832 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 149 | 630 | 575 |
CSS | 4 | 63 | 1 | 437 |
JavaScript | 4 | 80 | 113 | 417 |
Sass | 11 | 9 | 8 | 387 |
Markdown | 1 | 7 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin