84% woo-beecloud-integration

Code Review | Beecloud WooCommerce Integration

WordPress plugin Beecloud WooCommerce Integration scored 84% from 54 tests.

About plugin

  • Plugin page: woo-beecloud-inte...
  • Plugin version: 1.21.080301
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2019
  • Latest release: Aug 3, 2021
  • Number of updates: 39
  • Update frequency: every 21.7 days
  • Top authors: bitssoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.56ms] Passed 4 tests

This is a short check of server-side resources used by Beecloud WooCommerce Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.73 ▼1.35
Dashboard /wp-admin3.31 ▲0.0047.18 ▼4.39
Posts /wp-admin/edit.php3.36 ▲0.0046.44 ▲1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.12 ▼12.22
Media Library /wp-admin/upload.php3.23 ▲0.0035.76 ▼0.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Beecloud WooCommerce Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.471.78 ▼0.0143.91 ▼3.42
Dashboard /wp-admin2,209 ▲215.91 ▲0.06103.98 ▼14.5538.45 ▼4.65
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0235.01 ▼1.9833.14 ▼1.86
Add New Post /wp-admin/post-new.php1,534 ▲1523.13 ▲0.03674.02 ▲0.6258.30 ▼13.02
Media Library /wp-admin/upload.php1,385 ▼64.16 ▼0.04103.82 ▲3.0547.26 ▲0.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-beecloud-integration/includes/BCXWC_GridView.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === woo-beecloud-integration === )
Please take inspiration from this readme.txt

woo-beecloud-integration/bcxwc.php 92% from 13 tests

The main PHP file in "Beecloud WooCommerce Integration" ver. 1.21.080301 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-beecloud-integration.php" instead of "bcxwc.php")

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 plugin2,690 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10389712,220
JavaScript2325342
CSS2160128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity28.11
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity4.01
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods81
▷ Static methods2834.57%
▷ Public methods7592.59%
▷ Protected methods00.00%
▷ Private methods67.41%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/woo-menu-logo.png0.86KB0.79KB▼ 8.05%