Benchmarks
Plugin footprint 82% 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.24MB] [CPU: ▼4.37ms] Passed 4 tests
An overview of server-side resources used by Master Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.00 ▲2.54 | 40.01 ▼0.57 |
Dashboard /wp-admin | 3.54 ▲0.24 | 49.57 ▼2.19 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 51.19 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 90.90 ▼13.24 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 45.78 ▲9.90 |
BAR Builder /wp-admin/admin.php?page=masterbar_options&tab=0 | 6.18 | 49.94 |
Shortcode /wp-admin/admin.php?page=masterbar_options&tab=2 | 6.19 | 50.52 |
Select Places /wp-admin/admin.php?page=masterbar_options&tab=1 | 6.19 | 50.75 |
Import / Export /wp-admin/admin.php?page=masterbar_options&tab=import_export_default | 6.19 | 49.98 |
Server storage [IO: ▲4.77MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- The plugin illegally modified 1 file (145.03KB) outside of "wp-content/plugins/master-bar/" and "wp-content/uploads/"
- (new file) wp-content/redux/google-fonts/googlefonts.json
Filesystem: 275 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
redux-framework-tracking |
widget_recent-comments |
can_compress_scripts |
masterbar_settings |
db_upgraded |
masterbar_settings-transients |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Master Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 13.86 ▼0.80 | 10.08 ▲8.06 | 45.57 ▼0.59 |
Dashboard /wp-admin | 2,258 ▲78 | 5.59 ▼0.08 | 92.45 ▼4.41 | 38.62 ▼2.14 |
Posts /wp-admin/edit.php | 2,160 ▲57 | 2.03 ▲0.03 | 38.09 ▼4.66 | 36.43 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 23.02 ▼0.05 | 679.35 ▲3.45 | 58.53 ▼0.92 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.14 ▼0.06 | 110.50 ▲11.42 | 46.81 ▼3.49 |
BAR Builder /wp-admin/admin.php?page=masterbar_options&tab=0 | 2,843 | 5.85 | 152.31 | 51.75 |
Shortcode /wp-admin/admin.php?page=masterbar_options&tab=2 | 1,955 | 4.68 | 86.40 | 34.57 |
Select Places /wp-admin/admin.php?page=masterbar_options&tab=1 | 1,961 | 4.73 | 79.05 | 35.47 |
Import / Export /wp-admin/admin.php?page=masterbar_options&tab=import_export_default | 1,961 | 4.71 | 76.65 | 33.93 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- masterbar_settings
- widget_recent-comments
- widget_recent-posts
- redux-framework-tracking
- widget_theysaidso_widget
- masterbar_settings-transients
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=masterbar_options&tab=2
- > request to
- > Warning in wp-content/plugins/master-bar/admin/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php+382
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=masterbar_options&tab=2
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/master-bar/admin/redux-framework/ReduxCore/inc/fields/select/elusive-icons.php:312
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Front side), #2 (Admin side i), #3 (Admin side ii), #4 (Admin side iii), #5 (Admin side iv)
master-bar/master-bar.php Passed 13 tests
The primary PHP file in "Master Bar" version 1.0 is used by WordPress to initiate all plugin functionality
44 characters long description:
Display a bar on top of your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin29,708 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 83 | 2,004 | 1,648 | 9,353 |
PHP | 53 | 2,087 | 3,443 | 7,825 |
JSON | 4 | 0 | 0 | 5,025 |
LESS | 15 | 299 | 191 | 3,171 |
CSS | 22 | 258 | 114 | 2,668 |
Markdown | 4 | 285 | 0 | 924 |
SVG | 1 | 0 | 0 | 309 |
Sass | 10 | 1 | 0 | 288 |
XML | 1 | 1 | 0 | 90 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 39.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 743.00 |
Average method complexity | 7.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 290 | |
▷ Static methods | 34 | 11.72% |
▷ Public methods | 263 | 90.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 9.31% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 1.83MB with 1.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 324.79KB | 113.59KB | ▼ 65.03% |
admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/redux-framework/ReduxCore/assets/img/2cr.png | 2.92KB | 0.24KB | ▼ 91.69% |
admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/redux-framework/ReduxCore/assets/img/2-col-portfolio.png | 1.02KB | 0.15KB | ▼ 85.07% |