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.10MB] [CPU: ▼141.95ms] Passed 4 tests
Analyzing server-side resources used by Breaking Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 27.36 ▲6.70 |
Dashboard /wp-admin | 3.15 ▲0.09 | 43.78 ▼1.71 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 39.10 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 88.55 ▼556.93 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 28.23 ▼7.44 |
Breaking Bar /wp-admin/options-general.php?page=breaking-bar | 3.07 | 31.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
breaking_bar_options |
Browser metrics Passed 4 tests
Checking browser requirements for Breaking Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲131 | 16.19 ▲0.63 | 9.28 ▼1.36 | 47.39 ▼2.74 |
Dashboard /wp-admin | 2,989 ▲58 | 6.63 ▲0.72 | 140.05 ▼5.92 | 109.29 ▼0.62 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.78 ▲0.07 | 59.63 ▼8.88 | 93.83 ▲4.75 |
Add New Post /wp-admin/post-new.php | 1,643 ▲145 | 22.64 ▲3.82 | 274.65 ▼113.21 | 129.00 ▲17.61 |
Media Library /wp-admin/upload.php | 1,836 ▲29 | 5.38 ▲0.35 | 124.59 ▼30.69 | 120.81 ▲0.88 |
Breaking Bar /wp-admin/options-general.php?page=breaking-bar | 1,685 | 3.11 | 82.85 | 82.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- breaking_bar_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/breaking-bar/admin/partials/breaking-bar-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Coming Soon) image missing
- Plugin Name: You should set the name of your plugin on the first line (
=== breaking-bar ===
)
breaking-bar/breaking-bar.php Passed 13 tests
The main PHP script in "Breaking Bar" version 1.0.0 is automatically included on every request by WordPress
58 characters long description:
A simple breaking news bar that monitors a chosen category
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin377 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 187 | 594 | 371 |
JavaScript | 1 | 5 | 28 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 1 | |
▷ Named functions | 1 | 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
There are no PNG files in this plugin