89% gobuddy-the-smart-delivery-solution

Code Review | Gobuddy - The smart delivery solution

WordPress plugin Gobuddy - The smart delivery solution scored89%from 54 tests.

About plugin

  • Plugin page: gobuddy-the-smart...
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: May 17, 2023
  • Latest release: Nov 17, 2023
  • Number of updates: 37
  • Update frequency: every 5.0 days
  • Top authors: gobuddynetwork1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Gobuddy - The smart delivery solution
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.81 ▲0.53
Dashboard /wp-admin3.32 ▼0.0251.88 ▼8.79
Posts /wp-admin/edit.php3.38 ▲0.0244.96 ▼3.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.69 ▲11.36
Media Library /wp-admin/upload.php3.25 ▲0.0235.10 ▲2.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
gobuddy_config
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gobuddy - The smart delivery solution
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.57 ▲0.221.73 ▼0.1844.32 ▲0.33
Dashboard /wp-admin2,198 ▲175.61 ▼0.0994.65 ▼17.7640.92 ▼1.50
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0235.23 ▼6.5333.84 ▼5.24
Add New Post /wp-admin/post-new.php1,526 ▼023.36 ▲0.05637.44 ▲18.0555.56 ▲7.44
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0296.60 ▼1.8041.89 ▼1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: courier, delivery, shipping, e-commerce, woocommerce

gobuddy-the-smart-delivery-solution/gobuddy-shipping.php 85% from 13 tests

The main PHP file in "Gobuddy - The smart delivery solution" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gobuddy-the-smart-delivery-solution.php" instead of "gobuddy-shipping.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,195 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64271201,194
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity34.80
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods46100.00%
▷ Public methods2554.35%
▷ Protected methods00.00%
▷ Private methods2145.65%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants20
▷ Global constants420.00%
▷ Class constants1680.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-128x128.png6.34KB2.81KB▼ 55.66%
assets/images/icon-256x256.png17.73KB7.36KB▼ 58.49%