89% epn-woocommerce-addon

Code Review | eProcessing Network Payment Gateway for WooCommerce

WordPress plugin eProcessing Network Payment Gateway for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: epn-woocommerce-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 11, 2017
  • Latest release: Sep 11, 2017
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: nazrulhassanmca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,348 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.17ms] Passed 4 tests

Analyzing server-side resources used by eProcessing Network Payment Gateway for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.88 ▼3.83
Dashboard /wp-admin3.37 ▲0.0645.83 ▼5.67
Posts /wp-admin/edit.php3.42 ▲0.0649.09 ▲1.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.39 ▼4.89
Media Library /wp-admin/upload.php3.29 ▲0.0638.64 ▲4.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for eProcessing Network Payment Gateway for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.391.64 ▼0.1946.80 ▲7.60
Dashboard /wp-admin2,206 ▲184.84 ▼1.03100.32 ▼0.7137.87 ▲0.84
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0537.39 ▲3.0432.50 ▼0.89
Add New Post /wp-admin/post-new.php1,539 ▲1823.28 ▲0.21604.09 ▼15.9352.17 ▼32.27
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.2094.64 ▼6.7442.84 ▼4.17

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
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
  • Screenshots: Please add an image for screenshot #5 (Screenshot-5 - ePN Order Details)
  • Screenshots: A description for screenshot #2 is required in epn-woocommerce-addon/assets to your readme.txt
  • Tested up to: Invalid version format
The official readme.txt might help

epn-woocommerce-addon/epn-woocommerce-addon.php Passed 13 tests

The entry point to "eProcessing Network Payment Gateway for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
118 characters long description:
This plugin adds a payment option in WooCommerce for customers to pay with their Credit Cards Via eProcessing Network.

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
Good job! No executable or dangerous file extensions detected299 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16019299

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/discover.png5.78KB3.07KB▼ 46.82%
images/dinersclub.png6.35KB3.25KB▼ 48.74%
images/epn.png8.53KB3.53KB▼ 58.61%
images/maestro.png9.75KB3.88KB▼ 60.26%
images/visaelectron.png8.44KB3.69KB▼ 56.33%