Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲2,947.25ms] 75% from 4 tests
A check of server-side resources used by HUBBED Click & Collect
Please fix the following
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 2,947.25ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 1,064.17 ▲1,027.67 |
Dashboard /wp-admin | 3.62 ▲0.32 | 4,719.47 ▲4,670.07 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 2,405.41 ▲2,361.31 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 5,030.26 ▲4,938.71 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 3,763.36 ▲3,729.95 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
hubbed_map_key |
hubbed_success_install |
db_upgraded |
can_compress_scripts |
hubbed_key_location |
hubbed_store_id |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for HUBBED Click & Collect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.65 ▼0.79 | 1.68 ▲0.02 | 37.43 ▼3.49 |
Dashboard /wp-admin | 2,232 ▲55 | 5.20 ▼0.37 | 90.22 ▼3.17 | 41.68 ▲2.98 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.47 ▲0.53 | 34.17 ▼2.48 | 30.08 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,716 ▲190 | 20.90 ▼2.69 | 556.19 ▼55.65 | 50.41 ▼2.74 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.57 ▲0.35 | 95.05 ▼12.51 | 43.56 ▼6.03 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 11 options
- can_compress_scripts
- hubbed_success_install
- hubbed_store_id
- hubbed_setting_enable
- widget_recent-comments
- theysaidso_admin_options
- hubbed_key_location
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hubbed/includes/hubbed-order-list.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant Hubbed_URL - assumed 'Hubbed_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/hubbed/includes/location-popup.php on line 21
- > PHP Warning
file_get_contents(Hubbed_URLassets/front/pinicon.svg): failed to open stream: No such file or directory in wp-content/plugins/hubbed/includes/location-popup.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hubbed/includes/location-popup.php:24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #10, #8, #9 in hubbed/assets to your readme.txt
hubbed/hubbed.php 92% from 13 tests
The entry point to "HUBBED Click & Collect" version 4.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin17,508 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,232 | 36 | 11,012 |
JavaScript | 6 | 1,307 | 1,459 | 5,290 |
PHP | 6 | 283 | 66 | 1,200 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.56MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/hubbed-bd-logo.png | 1.74KB | 1.21KB | ▼ 30.22% |
assets/hubbed-bd-logo-hover.png | 2.22KB | 1.85KB | ▼ 16.53% |
assets/screenshot-1.png | 252.98KB | 63.62KB | ▼ 74.85% |
assets/screenshot-2.png | 30.69KB | 15.18KB | ▼ 50.55% |
assets/logo.png | 2.14KB | 2.19KB | 0.00% |