77% hubbed

Code Review | HUBBED Click & Collect

WordPress plugin HUBBED Click & Collect scored77%from 54 tests.

About plugin

  • Plugin page: hubbed
  • Plugin version: 4.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: May 11, 2020
  • Latest release: Oct 10, 2023
  • Number of updates: 45
  • Update frequency: every 27.8 days
  • Top authors: hubbedwordpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,287 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.291,064.17 ▲1,027.67
Dashboard /wp-admin3.62 ▲0.324,719.47 ▲4,670.07
Posts /wp-admin/edit.php3.68 ▲0.322,405.41 ▲2,361.31
Add New Post /wp-admin/post-new.php6.16 ▲0.285,030.26 ▲4,938.71
Media Library /wp-admin/upload.php3.49 ▲0.263,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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.65 ▼0.791.68 ▲0.0237.43 ▼3.49
Dashboard /wp-admin2,232 ▲555.20 ▼0.3790.22 ▼3.1741.68 ▲2.98
Posts /wp-admin/edit.php2,143 ▲462.47 ▲0.5334.17 ▼2.4830.08 ▼6.63
Add New Post /wp-admin/post-new.php1,716 ▲19020.90 ▼2.69556.19 ▼55.6550.41 ▼2.74
Media Library /wp-admin/upload.php1,443 ▲404.57 ▲0.3595.05 ▼12.5143.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

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
You can take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
CSS51,2323611,012
JavaScript61,3071,4595,290
PHP6283661,200
SVG6006

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 code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/hubbed-bd-logo.png1.74KB1.21KB▼ 30.22%
assets/hubbed-bd-logo-hover.png2.22KB1.85KB▼ 16.53%
assets/screenshot-1.png252.98KB63.62KB▼ 74.85%
assets/screenshot-2.png30.69KB15.18KB▼ 50.55%
assets/logo.png2.14KB2.19KB0.00%