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
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼10.68ms] Passed 4 tests
Server-side resources used by PerfBar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 23.02 ▼19.27 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.56 ▼4.27 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.96 ▼5.75 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.23 ▼13.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 33.45 ▼4.40 |
PerfBar /wp-admin/options-general.php?page=perf-bar | 3.35 | 33.29 |
Server storage [IO: ▲0.09MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PerfBar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,126 ▲365 | 14.77 ▲0.32 | 4.32 ▲2.51 | 47.34 ▲1.31 |
Dashboard /wp-admin | 2,222 ▲16 | 5.83 ▼0.02 | 105.54 ▼12.80 | 37.43 ▼8.81 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▼0.02 | 35.89 ▼4.99 | 36.00 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,547 ▲16 | 23.12 ▲0.01 | 636.37 ▼88.88 | 61.33 ▼3.80 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▼0.07 | 99.13 ▼3.63 | 44.75 ▼1.70 |
PerfBar /wp-admin/options-general.php?page=perf-bar | 1,135 | 2.05 | 21.76 | 31.28 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== perfbar ===
)
perfbar/perf-bar.php 92% from 13 tests
This is the main PHP file of "PerfBar" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("perfbar.php" instead of "perf-bar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,356 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 213 | 36 | 887 |
PHP | 7 | 143 | 359 | 469 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.09% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin