78% woo-mp

Code Review | WooCommerce Manual Payment

WordPress plugin WooCommerce Manual Payment scored78%from 54 tests.

About plugin

  • Plugin page: woo-mp
  • Plugin version: 2.8.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Oct 27, 2023
  • Number of updates: 207
  • Update frequency: every 11.8 days
  • Top authors: bfl (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /31,855 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.62ms] Passed 4 tests

A check of server-side resources used by WooCommerce Manual Payment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.55 ▼2.84
Dashboard /wp-admin3.32 ▲0.0244.78 ▲0.02
Posts /wp-admin/edit.php3.37 ▲0.0246.40 ▼0.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.69 ▼11.08
Media Library /wp-admin/upload.php3.24 ▲0.0236.41 ▲3.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Manual Payment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.19 ▼0.391.80 ▲0.0545.59 ▲2.23
Dashboard /wp-admin2,198 ▲245.55 ▼0.0482.82 ▼8.5538.83 ▼1.06
Posts /wp-admin/edit.php2,106 ▲91.99 ▲0.0135.37 ▼0.5532.83 ▼0.01
Add New Post /wp-admin/post-new.php1,539 ▲1023.39 ▲0.20674.11 ▼17.8854.63 ▼5.66
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0094.34 ▼15.7740.85 ▼7.37

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-mp/templates/notice-template.php
  • 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Eway\\Rapid\\Contract\\Arrayable' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Model/AbstractModel.php:14
    • > PHP Fatal error
      Trait 'Eway\\Rapid\\Model\\Support\\CanGetClassTrait' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Enum/AbstractEnum.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Enum/FraudAction.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Model/Response/RefundResponse.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Model\\AbstractModel' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Model/Refund.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Model/Response/CreateCustomerResponse.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Enum/BeagleVerifyStatus.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Model\\Response\\AbstractResponse' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Model/Response/QueryCustomerResponse.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Enum/ShippingMethod.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Eway\\Rapid\\Enum\\AbstractEnum' not found in wp-content/plugins/woo-mp/includes/payment-gateways/eway/libraries/eway-rapid-php-1.4.1/src/Rapid/Enum/VerifyStatus.php:8

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

woo-mp/woo-mp.php 92% from 13 tests

"WooCommerce Manual Payment" version 2.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin9,267 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241,3423,1507,946
JavaScript515111578
CSS3920411
INI100313
Markdown12019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.21
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces22
Interfaces6
Traits16
Classes84
▷ Abstract classes1720.24%
▷ Concrete classes6779.76%
▷ Final classes00.00%
Methods379
▷ Static methods3910.29%
▷ Public methods28575.20%
▷ Protected methods174.49%
▷ Private methods7720.32%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants108
▷ Global constants98.33%
▷ Class constants9991.67%
▷ Public constants99100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected