93% bringhub

Code Review | Bringhub

WordPress plugin Bringhub scored 93% from 53 tests.

About plugin

  • Plugin page: bringhub
  • Plugin version: 2018.03.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 5.8.1
  • First release: Apr 25, 2017
  • Latest release: Mar 20, 2018
  • Number of updates: 21
  • Update frequency: every 15.9 days
  • Top authors: bringhub (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 834 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0539.74 ▲8.10
Dashboard /wp-admin3.13 ▲0.0842.16 ▼1.98
Posts /wp-admin/edit.php3.24 ▲0.1347.59 ▲1.92
Add New Post /wp-admin/post-new.php5.49 ▲0.0687.95 ▼1,033.98
Media Library /wp-admin/upload.php3.07 ▲0.0631.18 ▼6.49
Bringhub /wp-admin/options-general.php?page=bringhub-settings-admin3.0431.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7215.75 ▲0.2711.10 ▲0.7756.18 ▲10.39
Dashboard /wp-admin2,938 ▲855.89 ▼0.02134.91 ▼12.4799.71 ▼8.58
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0069.01 ▼5.8291.21 ▼4.94
Add New Post /wp-admin/post-new.php1,656 ▲518.80 ▲1.65378.98 ▼8.03108.73 ▲4.41
Media Library /wp-admin/upload.php1,780 ▲55.02 ▲0.01148.69 ▼16.88100.86 ▼9.66
Bringhub /wp-admin/options-general.php?page=bringhub-settings-admin1,0512.0955.6177.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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PO File1131550
Bourne Shell1203

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 code0.39
Average class complexity8.33
▷ Minimum class complexity4.00
▷ Maximum class complexity12.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png964.13KB345.43KB▼ 64.17%
assets/banner-772x250.png315.13KB106.91KB▼ 66.08%