Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.30MB] [CPU: ▼9.80ms] Passed 4 tests
Analyzing server-side resources used by WP Branding Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.78 ▼33.67 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.29 ▼0.52 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.65 ▲2.79 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.78 ▼6.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.53 ▲1.01 |
WP Branding Bars /wp-admin/options-general.php?page=wp_bb_menu_slug | 3.26 | 34.91 |
Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wp_bb_options |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Branding Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,201 ▲455 | 15.67 ▲1.29 | 8.98 ▲7.20 | 47.75 ▲4.15 |
Dashboard /wp-admin | 2,352 ▲164 | 6.45 ▲1.36 | 133.58 ▲27.75 | 43.07 ▼0.04 |
Posts /wp-admin/edit.php | 2,255 ▲169 | 3.39 ▲1.28 | 55.06 ▲19.73 | 34.77 ▲4.65 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.30 ▲5.87 | 636.10 ▲30.42 | 36.00 ▼18.88 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.16 ▼0.02 | 83.62 ▼11.31 | 44.08 ▲3.59 |
WP Branding Bars /wp-admin/options-general.php?page=wp_bb_menu_slug | 1,105 | 3.15 | 43.39 | 57.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-branding-bar/plugin.php:34
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Screenshots: These screenshots require images: #1 (WP Branding Bar), #2 (WP Branding Bar settings page)
wp-branding-bar/plugin.php 77% from 13 tests
"WP Branding Bar" version 1.5.6 Plays nice wit...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.5.6 Plays nice wit...")
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-branding-bar.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin594 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 44 | 436 |
JavaScript | 2 | 1 | 12 | 113 |
CSS | 1 | 7 | 2 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.32MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/utlogo.png | 8.44KB | 3.27KB | ▼ 61.28% |
images/default-right.png | 3.52KB | 0.08KB | ▼ 97.59% |
screenshot-2.png | 123.27KB | 41.51KB | ▼ 66.33% |
images/default-left.png | 3.53KB | 0.09KB | ▼ 97.51% |
images/default-background.png | 2.75KB | 0.12KB | ▼ 95.77% |