83% orderbee

Code Review | OrderBee

WordPress plugin OrderBee scored83%from 54 tests.

About plugin

  • Plugin page: orderbee
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Aug 30, 2020
  • Number of updates: 34
  • Update frequency: every 1.1 days
  • Top authors: returnedx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.19ms] Passed 4 tests

This is a short check of server-side resources used by OrderBee
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.90 ▲1.32
Dashboard /wp-admin3.36 ▲0.0645.81 ▼2.41
Posts /wp-admin/edit.php3.41 ▲0.0647.50 ▼3.17
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.97 ▼18.75
Media Library /wp-admin/upload.php3.28 ▲0.0636.12 ▼0.41
Settings /wp-admin/admin.php?page=obfrwc_page_settings3.30174.53
Pickup Locator /wp-admin/admin.php?page=obfrwc_pickup_locator3.2831.34
Change Log /wp-admin/admin.php?page=obfrwc_change_log3.3032.32

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • You have illegally modified 1 file (0.61KB) outside of "wp-content/plugins/orderbee/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 33 new files
Database: 1 new table, 6 new options
New tables
wp_obfrwc_pushjobs
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for OrderBee
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲10214.47 ▲0.091.85 ▼0.0541.22 ▼5.14
Dashboard /wp-admin2,240 ▲495.79 ▲0.92103.73 ▼0.7675.24 ▲34.36
Posts /wp-admin/edit.php2,120 ▲311.99 ▼0.0335.91 ▼5.7834.11 ▼0.88
Add New Post /wp-admin/post-new.php1,552 ▲3223.17 ▲0.02746.52 ▲77.7252.99 ▼10.61
Media Library /wp-admin/upload.php1,425 ▲374.16 ▼0.02102.57 ▼5.9671.09 ▲24.63
Settings /wp-admin/admin.php?page=obfrwc_page_settings8542.0123.4728.04
Pickup Locator /wp-admin/admin.php?page=obfrwc_pickup_locator8042.0729.0124.42
Change Log /wp-admin/admin.php?page=obfrwc_change_log8162.0624.2025.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/orderbee/admin/partials/orderbee-pickuplocator.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/orderbee/admin/partials/orderbee-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orderbee/common/admin-bar.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/orderbee/admin/partials/orderbee-product-changlog.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === orderbee === )
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

orderbee/orderbee.php Passed 13 tests

The entry point to "OrderBee" version 1.3.3 is a PHP file that has certain tags in its header comment area
83 characters long description:
This plugin makes a fast and safe connection between your Woocommerce and OrderBee.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,395 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP183844721,087
PO File396141294
CSS11111
JavaScript12273

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.82
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3181.58%
▷ Protected methods37.89%
▷ Private methods410.53%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.87KB0.57KB▼ 33.97%