90% wsb-hub3

Code Review | WSB HUB3

WordPress plugin WSB HUB3 scored90%from 54 tests.

About plugin

  • Plugin page: wsb-hub3
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: May 9, 2023
  • Number of updates: 53
  • Update frequency: every 24.5 days
  • Top authors: branahr (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

700+ active /5,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by WSB HUB3
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.57 ▼0.81
Dashboard /wp-admin3.32 ▲0.0145.92 ▼0.15
Posts /wp-admin/edit.php3.37 ▲0.0145.48 ▼1.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.05 ▼6.33
Media Library /wp-admin/upload.php3.24 ▲0.0133.97 ▼0.24

Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WSB HUB3: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4813.23 ▼1.142.04 ▼0.0340.40 ▲1.97
Dashboard /wp-admin2,205 ▲205.84 ▲0.97101.62 ▼16.5439.43 ▼5.16
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0334.92 ▼4.9433.64 ▼1.27
Add New Post /wp-admin/post-new.php1,519 ▲517.61 ▼5.92641.73 ▼29.3949.86 ▼6.63
Media Library /wp-admin/upload.php1,393 ▲54.22 ▼0.0196.07 ▼1.2743.56 ▼1.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: hub3, uplatnica, woocommerce, barcode

wsb-hub3/wsb-hub3.php 92% from 13 tests

The primary PHP file in "WSB HUB3" version 2.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,993 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP112905921,645
PO File1129140284
CSS23037
JavaScript23027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity29.22
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods79
▷ Static methods67.59%
▷ Public methods7189.87%
▷ Protected methods00.00%
▷ Private methods810.13%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin