89% rd-wc-order-modifier

Code Review | RD Order Modifier for WooCommerce

WordPress plugin RD Order Modifier for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: rd-wc-order-modifier
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 29, 2022
  • Latest release: Nov 6, 2023
  • Number of updates: 29
  • Update frequency: every 12.9 days
  • Top authors: camper2020 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by RD Order Modifier for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.24 ▼6.75
Dashboard /wp-admin3.31 ▲0.0044.57 ▼8.21
Posts /wp-admin/edit.php3.36 ▲0.0046.46 ▲1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.21 ▼6.89
Media Library /wp-admin/upload.php3.23 ▲0.0031.91 ▼5.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RD Order Modifier for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6514.32 ▼0.391.88 ▲0.0140.72 ▼2.23
Dashboard /wp-admin2,195 ▲155.66 ▲0.0484.25 ▼8.3339.80 ▼1.30
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0139.45 ▼0.2136.85 ▲2.99
Add New Post /wp-admin/post-new.php1,526 ▼923.69 ▼1.50600.38 ▼40.8165.73 ▲0.44
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.03101.25 ▼6.4743.76 ▲0.13

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 90% 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
7 plugin tags: vat, tax, admin dashboard, admin order, woocommerce...

rd-wc-order-modifier/rd-wc-order-modifier.php 77% from 13 tests

The primary PHP file in "RD Order Modifier for WooCommerce" version 1.0.12 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • 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
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "7.0")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.7.2")

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
Success! There were no dangerous files found in this plugin783 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP38235667
JavaScript115593
CSS13023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity92.00
▷ Minimum class complexity92.00
▷ Maximum class complexity92.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods34100.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/robotdwarf-mascot.png29.48KB4.84KB▼ 83.57%