82% e2payments-wp-payment-for-woocommerce

Code Review | e2payments-wp Payment for Woocommerce

WordPress plugin e2payments-wp Payment for Woocommerce scored 82% from 54 tests.

About plugin

  • Plugin page: e2payments-wp-pay...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Jun 20, 2023
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: explicador (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 70 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: ▼4.11ms] Passed 4 tests

Server-side resources used by e2payments-wp Payment for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.25 ▼1.24
Dashboard /wp-admin3.31 ▲0.0044.78 ▼7.42
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▲1.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.16 ▼9.42
Media Library /wp-admin/upload.php3.23 ▲0.0036.55 ▲3.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for e2payments-wp Payment for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.73 ▲0.352.13 ▲0.2343.74 ▼6.09
Dashboard /wp-admin2,206 ▲185.88 ▲1.01110.04 ▼0.0538.40 ▼10.85
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0143.51 ▲8.1334.57 ▼0.66
Add New Post /wp-admin/post-new.php1,514 ▼2017.80 ▼5.30684.66 ▼10.4756.58 ▼0.76
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.1093.21 ▼2.6341.48 ▼4.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/e2payments-wp-payment-for-woocommerce/woocommerce.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 69% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Donate link: Invalid URI ("")
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === e2payments-wp-payment-for-woocommerce === )
  • Screenshots: Add images for these screenshots: #1 (Screenshot from 2023-04-03 23-53-06.png), #2 (Screenshot from 2023-04-03 23-54-48.png)
  • Contributors: There were no tags found
Please take inspiration from this readme.txt

e2payments-wp-payment-for-woocommerce/woocommerce.php 85% from 13 tests

The primary PHP file in "e2payments-wp Payment for Woocommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("e2payments-wp-payment-for-woocommerce.php" instead of "woocommerce.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 361 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14969185
JavaScript223754
Markdown120032

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected