84% uafrica-shipping

Code Review | Bob Go smart shipping solution

WordPress plugin Bob Go smart shipping solution scored84%from 54 tests.

About plugin

  • Plugin page: uafrica-shipping
  • Plugin version: 2.5.21
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 57
  • Update frequency: every 17.2 days
  • Top authors: uafrica (80.7%)bobgroup (21.05%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /16,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.95ms] Passed 4 tests

An overview of server-side resources used by Bob Go smart shipping solution
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1243.65 ▲3.36
Dashboard /wp-admin3.43 ▲0.0849.27 ▼15.64
Posts /wp-admin/edit.php3.55 ▲0.1847.41 ▼1.42
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.64 ▼6.10
Media Library /wp-admin/upload.php3.35 ▲0.1240.64 ▲3.80
Bob Go /wp-admin/options-general.php?page=uafrica-shipping3.3434.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
uafrica
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bob Go smart shipping solution
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.10 ▼0.522.23 ▲0.4143.39 ▼1.80
Dashboard /wp-admin2,202 ▲245.58 ▼0.1490.75 ▼25.2141.67 ▼1.55
Posts /wp-admin/edit.php2,101 ▼22.03 ▼0.0035.41 ▼0.6333.31 ▼2.98
Add New Post /wp-admin/post-new.php6,367 ▲4,82927.68 ▲4.46948.81 ▲264.4252.24 ▼9.21
Media Library /wp-admin/upload.php1,401 ▲44.22 ▲0.04112.47 ▲10.4548.11 ▲0.11
Bob Go /wp-admin/options-general.php?page=uafrica-shipping8282.0027.3926.01

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/uafrica-shipping/uninstall.php:3
    • > PHP Warning
      Use of undefined constant UAFRICA_SHIPPING_URL - assumed 'UAFRICA_SHIPPING_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uafrica-shipping/app/templates/settings-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php:20
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/uafrica-shipping/app/class-shipping.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function uAfrica_Shipping\\plugin_dir_path() in wp-content/plugins/uafrica-shipping/uafrica-shipping.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: shipping, fulfilment, gutenberg blocks, blocks, gutenberg...

uafrica-shipping/uafrica-shipping.php 92% from 13 tests

"Bob Go smart shipping solution" version 2.5.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0.0" instead of "7.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
Everything looks great! No dangerous files found in this plugin1,711 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP12177393970
JavaScript64145423
Sass2262135
PO File1303678
Markdown229076
SVG30125
JSON3003
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.86
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods3061.22%
▷ Public methods4081.63%
▷ Protected methods816.33%
▷ Private methods12.04%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.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
PNG images were not found in this plugin