84% payment-gateway-for-worldcoreeu-and-woocommerce

Code Review | Payment Gateway for Worldcore.eu and WooCommerce

WordPress plugin Payment Gateway for Worldcore.eu and WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: payment-gateway-f...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Jul 12, 2016
  • Number of updates: 17
  • Update frequency: every 6.9 days
  • Top authors: makertum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /812 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
Installer ran successfully

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

An overview of server-side resources used by Payment Gateway for Worldcore.eu and WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.09 ▲0.97
Dashboard /wp-admin3.31 ▼0.0348.85 ▼13.55
Posts /wp-admin/edit.php3.36 ▲0.0145.93 ▼3.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.14 ▼13.50
Media Library /wp-admin/upload.php3.23 ▲0.0138.43 ▲2.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Payment Gateway for Worldcore.eu and WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.80 ▲0.222.22 ▲0.4943.07 ▲1.95
Dashboard /wp-admin2,221 ▲184.84 ▼0.18114.19 ▲5.1642.74 ▼2.05
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0837.11 ▼3.5932.86 ▼5.27
Add New Post /wp-admin/post-new.php1,526 ▼517.53 ▼5.73665.73 ▲34.7254.80 ▲4.70
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.1297.33 ▼7.9744.30 ▼1.04

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/payment-gateway-for-worldcoreeu-and-woocommerce/woocommerce-worldcore.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-gateway-for-worldcoreeu-and-woocommerce/woocommerce-worldcore-gateway.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocoomerce, payment, gateway, worldcore, sci...

payment-gateway-for-worldcoreeu-and-woocommerce/woocommerce-worldcore-gateway.php 92% from 13 tests

"Payment Gateway for Worldcore.eu and WooCommerce" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payment-gateway-for-worldcoreeu-and-woocommerce.php" instead of "woocommerce-worldcore-gateway.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
Success! There were no dangerous files found in this plugin171 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23375171

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin