84% zeus-payment-gateway-integration-for-woocommerce-and-paychoice

Code Review | Zeus Payment Gateway Integration for Woocommerce and Paychoice

WordPress plugin Zeus Payment Gateway Integration for Woocommerce and Paychoice scored84%from 54 tests.

About plugin

  • Plugin page: zeus-payment-gate...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Aug 13, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: gramire4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /489 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 successfully, without throwing any errors or notices

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

Server-side resources used by Zeus Payment Gateway Integration for Woocommerce and Paychoice
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.62 ▲1.71
Dashboard /wp-admin3.31 ▼0.0346.59 ▼17.43
Posts /wp-admin/edit.php3.42 ▲0.0751.42 ▲4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.68 ▼17.09
Media Library /wp-admin/upload.php3.23 ▲0.0134.06 ▼5.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Zeus Payment Gateway Integration for Woocommerce and Paychoice: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.40 ▲0.041.95 ▼0.3440.84 ▼1.87
Dashboard /wp-admin2,209 ▲185.85 ▲0.8697.12 ▼18.0939.32 ▼3.73
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.07 ▲1.1735.90 ▼1.68
Add New Post /wp-admin/post-new.php1,533 ▼023.03 ▼0.11676.72 ▼11.7455.11 ▼19.49
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0599.63 ▼17.6144.80 ▼2.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zeus-payment-gateway-integration-for-woocommerce-and-paychoice/zeus-payment-gateway-integration.php:9

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: zeus business intelligence, payment gateway, paychoice payment gateway and woocommerce integration, woocommerce payment gateway, paychoice payment gateway...

zeus-payment-gateway-integration-for-woocommerce-and-paychoice/zeus-payment-gateway-integration.php 85% from 13 tests

The entry point to "Zeus Payment Gateway Integration for Woocommerce and Paychoice" version 1.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zeus-payment-gateway-integration-for-woocommerce-and-paychoice.php" instead of "zeus-payment-gateway-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected851 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114585851

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity60.50
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.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 were not PNG files found in your plugin