Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼260.13ms] Passed 4 tests
Server-side resources used by Bringhub
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 39.74 ▲8.10 |
Dashboard /wp-admin | 3.13 ▲0.08 | 42.16 ▼1.98 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 47.59 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 87.95 ▼1,033.98 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 31.18 ▼6.49 |
Bringhub /wp-admin/options-general.php?page=bringhub-settings-admin | 3.04 | 31.86 |
Server storage [IO: ▲4.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Bringhub
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.75 ▲0.27 | 11.10 ▲0.77 | 56.18 ▲10.39 |
Dashboard /wp-admin | 2,938 ▲85 | 5.89 ▼0.02 | 134.91 ▼12.47 | 99.71 ▼8.58 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.00 | 69.01 ▼5.82 | 91.21 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,656 ▲5 | 18.80 ▲1.65 | 378.98 ▼8.03 | 108.73 ▲4.41 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.02 ▲0.01 | 148.69 ▼16.88 | 100.86 ▼9.66 |
Bringhub /wp-admin/options-general.php?page=bringhub-settings-admin | 1,051 | 2.09 | 55.61 | 77.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bringhub/includes/settings.php:241
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bringhub/bringhub.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bringhub/shortcodes/script.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bringhub/bringhub.php 92% from 13 tests
This is the main PHP file of "Bringhub" version 2018.03.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)
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
No dangerous file extensions were detected468 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 79 | 97 | 390 |
PO File | 1 | 13 | 15 | 50 |
JavaScript | 1 | 9 | 4 | 24 |
Bourne Shell | 1 | 2 | 0 | 3 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.25MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 0.46KB | 0.61KB | 0.00% |
assets/images/logo-no.png | 0.74KB | 0.92KB | 0.00% |
assets/js/tinymce_logo_disable.png | 0.77KB | 0.77KB | 0.00% |
assets/banner-1544x500.png | 964.13KB | 345.43KB | ▼ 64.17% |
assets/banner-772x250.png | 315.13KB | 106.91KB | ▼ 66.08% |