Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/infobarwp/infobar.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; wpinfobar has a deprecated constructor
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.09ms] Passed 4 tests
An overview of server-side resources used by InfobarWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 47.42 ▲3.65 |
Dashboard /wp-admin | 3.31 ▼0.04 | 57.24 ▼6.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.15 ▼9.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.07 ▼28.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.44 ▲5.02 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for InfobarWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.35 ▲0.14 | 1.89 ▲0.05 | 44.03 ▲0.20 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.09 | 98.78 ▼1.66 | 46.24 ▲0.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.01 | 35.25 ▼2.07 | 34.29 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.00 ▼0.85 | 668.10 ▼3.79 | 48.27 ▼5.78 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 103.93 ▼6.99 | 48.48 ▼2.25 |
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
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/infobarwp/infobar.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== infobarwp ===
)
infobarwp/infobar.php 92% from 13 tests
The primary PHP file in "InfobarWP" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("infobarwp.php" instead of "infobar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,421 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1,833 | 158 | 2,021 |
JavaScript | 7 | 319 | 272 | 1,904 |
CSS | 4 | 33 | 59 | 496 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 257.00 |
▷ Minimum class complexity | 257.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 8.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
46 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom_rgb_g.png | 1.04KB | 0.80KB | ▼ 23.67% |
images/headsup-h2.png | 13.65KB | 12.54KB | ▼ 8.07% |
images/jui/ui-icons_b83400_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
images/jui/ui-bg_fine-grain_15_ffffff_60x60.png | 3.63KB | 1.56KB | ▼ 56.97% |
images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |