Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼175.41ms] Passed 4 tests
Server-side resources used by Business Hub Toolbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 24.74 ▲0.08 |
Dashboard /wp-admin | 3.03 ▼0.03 | 22.06 ▼26.49 |
Posts /wp-admin/edit.php | 3.03 ▼0.08 | 28.82 ▼20.15 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.41 | 21.69 ▼642.33 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 25.17 ▼12.66 |
All Pricing Tables /wp-admin/edit.php?post_type=rws-pricing-table | 3.03 | 25.69 |
Add Testimonial /wp-admin/post-new.php?post_type=bht_testimonials | 3.03 | 24.86 |
Add Pricing Table /wp-admin/post-new.php?post_type=rws-pricing-table | 3.03 | 21.32 |
All Item /wp-admin/edit.php?post_type=bht-event | 3.03 | 28.12 |
Add event /wp-admin/post-new.php?post_type=bht-event | 3.03 | 22.86 |
Testimonials /wp-admin/edit.php?post_type=bht_testimonials | 3.03 | 23.88 |
Settings /wp-admin/edit.php?post_type=bht-event&page=rwsec-setting | 3.03 | 20.95 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_rwsec_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Business Hub Toolbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,174 ▲578 | 18.57 ▲2.60 | 17.01 ▲5.90 | 49.74 ▼2.55 |
Dashboard /wp-admin | 3,289 ▲359 | 7.51 ▲1.59 | 202.59 ▲26.59 | 120.35 ▲1.78 |
Posts /wp-admin/edit.php | 3,090 ▲351 | 4.01 ▲1.29 | 101.96 ▲25.74 | 100.70 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,704 ▲21 | 21.52 ▲5.22 | 291.88 ▼165.54 | 117.17 ▲0.40 |
Media Library /wp-admin/upload.php | 1,936 ▲129 | 5.25 ▲0.21 | 157.06 ▼16.30 | 122.47 ▼2.91 |
All Pricing Tables /wp-admin/edit.php?post_type=rws-pricing-table | 1,764 | 4.44 | 101.10 | 76.59 |
Add Testimonial /wp-admin/post-new.php?post_type=bht_testimonials | 3,147 | 9.56 | 276.01 | 148.75 |
Add Pricing Table /wp-admin/post-new.php?post_type=rws-pricing-table | 2,706 | 4.85 | 120.96 | 109.64 |
All Item /wp-admin/edit.php?post_type=bht-event | 1,761 | 4.45 | 114.23 | 86.13 |
Add event /wp-admin/post-new.php?post_type=bht-event | 3,628 | 9.31 | 286.15 | 205.71 |
Testimonials /wp-admin/edit.php?post_type=bht_testimonials | 1,747 | 4.41 | 92.65 | 78.30 |
Settings /wp-admin/edit.php?post_type=bht-event&page=rwsec-setting | 1,454 | 3.91 | 85.84 | 91.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-post-type.php+568
Invalid argument supplied for foreach()
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_rwsec_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bht-event&page=rwsec-setting
- > Warning in wp-includes/class-wp-post-type.php+568
Invalid argument supplied for foreach()
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/business-hub-toolbox/inc/bht-settings.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ECA_IMAGE_DIR - assumed 'ECA_IMAGE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-hub-toolbox/inc/bht-meta.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'BHP_DIRinc/TwitterAPIExchange.php' (include_path='.:/usr/share/php') in wp-content/plugins/business-hub-toolbox/inc/bht-showTweets.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/business-hub-toolbox/inc/bht-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/business-hub-toolbox/inc/bht-price-table.php:2
- > PHP Notice
Undefined variable: position in wp-content/plugins/business-hub-toolbox/inc/bht-settings.php on line 9
- > PHP Notice
Undefined variable: position in wp-content/plugins/business-hub-toolbox/inc/bht-settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/business-hub-toolbox/speakers/repeatable-speaker.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/business-hub-toolbox/inc/bht-event-meta.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/business-hub-toolbox/inc/bht-meta.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/business-hub-toolbox/inc/archive-events.php:1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=bht-event
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/business-hub-toolbox/speakers//js/scripts.js?ver=5.8.1:131:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/post-new.php?post_type=bht-event
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31702 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
business-hub-toolbox/business-hub-toolbox.php Passed 13 tests
The principal PHP file in "Business Hub Toolbox" v. 1.0.4 is loaded by WordPress automatically on each request
81 characters long description:
A plugin to display instagram feeds, twitter feeds, testimonial custom post types
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
Good job! No executable or dangerous file extensions detected8,162 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 511 | 200 | 3,092 |
JavaScript | 13 | 616 | 944 | 2,544 |
PHP | 21 | 491 | 445 | 2,526 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.08% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
4 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/images/tweet-bg.png | 238.44KB | 79.01KB | ▼ 66.86% |
assets/admin/images/Close.png | 0.97KB | 0.61KB | ▼ 36.60% |
speakers/images/image.png | 2.74KB | 0.10KB | ▼ 96.43% |
speakers/images/sprite.png | 6.06KB | 2.18KB | ▼ 64.10% |