89% wc-ready2order-integration

Code Review | Integration of ready2order with WooCommerce

WordPress plugin Integration of ready2order with WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-ready2order-in...
  • Plugin version: 2.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Oct 10, 2023
  • Number of updates: 32
  • Update frequency: every 28.5 days
  • Top authors: carlericsson (62.5%)bjorntech (40.63%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,249 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼9.03ms] Passed 4 tests

An overview of server-side resources used by Integration of ready2order with WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1839.13 ▼0.86
Dashboard /wp-admin3.48 ▲0.1851.01 ▼2.92
Posts /wp-admin/edit.php3.59 ▲0.2447.07 ▼3.01
Add New Post /wp-admin/post-new.php6.06 ▲0.1882.86 ▼29.33
Media Library /wp-admin/upload.php3.40 ▲0.1838.20 ▲4.60

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Integration of ready2order with WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.42 ▲0.182.12 ▲0.4044.12 ▲6.24
Dashboard /wp-admin2,202 ▲225.64 ▼0.0088.42 ▼0.3643.39 ▼0.66
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0035.54 ▼3.8533.18 ▲0.24
Add New Post /wp-admin/post-new.php1,535 ▲223.20 ▼0.12655.28 ▲54.6050.99 ▼8.29
Media Library /wp-admin/upload.php1,407 ▲74.31 ▲0.10103.84 ▲9.1347.56 ▲6.60

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
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 a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • License uri: Please fix this invalid URI: "bjorntech.se/ready2order"
You can look at the official readme.txt

wc-ready2order-integration/wc-ready2order-integration.php 92% from 13 tests

The principal PHP file in "Integration of ready2order with WooCommerce" v. 2.1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.0")

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
Everything looks great! No dangerous files found in this plugin4,345 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,3864744,237
JavaScript114194
CSS12014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity34.63
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods235
▷ Static methods8937.87%
▷ Public methods22394.89%
▷ Protected methods00.00%
▷ Private methods125.11%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.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