84% move-orders-on-hold-to-processing-if-successfull-authorize-net-payment

Code Review | Move orders on-hold to processing if successful authorize.net payment

WordPress plugin Move orders on-hold to processing if successful authorize.net payment scored 84% from 54 tests.

About plugin

  • Plugin page: move-orders-on-ho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 24, 2022
  • Latest release: Feb 24, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ondway2legend (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Move orders on-hold to processing if successful authorize.net payment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.69 ▼4.74
Dashboard /wp-admin3.32 ▲0.0146.58 ▼0.19
Posts /wp-admin/edit.php3.37 ▲0.0142.86 ▼4.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.33 ▲0.27
Media Library /wp-admin/upload.php3.24 ▲0.0133.48 ▲0.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Move orders on-hold to processing if successful authorize.net payment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.464.76 ▲2.9443.42 ▼9.20
Dashboard /wp-admin2,206 ▲144.86 ▼0.1099.16 ▼7.9740.87 ▼2.61
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0138.99 ▲1.2831.70 ▼2.98
Add New Post /wp-admin/post-new.php1,514 ▼017.67 ▼0.11669.31 ▼3.2451.22 ▼13.15
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0495.77 ▼6.8244.22 ▲0.86

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/move-orders-on-hold-to-processing-if-successfull-authorize-net-payment/on-hold-to_processing_for_successful_authorize_payment.php:14

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 Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: processing, payment, on-hold, authorizenet, order status...

move-orders-on-hold-to-processing-if-successfull-authorize-net-payment/on-hold-to_processing_for_successful_authorize_payment.php 85% from 13 tests

The main PHP script in "Move orders on-hold to processing if successful authorize.net payment" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 244 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("move-orders-on-hold-to-processing-if-successfull-authorize-net-payment.php" instead of "on-hold-to_processing_for_successful_authorize_payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161531

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin