89% ndms-epay-plus-for-woocommerce

Code Review | NDMS ePay Plus

WordPress plugin NDMS ePay Plus scored89%from 54 tests.

About plugin

  • Plugin page: ndms-epay-plus-fo...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2014
  • Latest release: Mar 11, 2015
  • Number of updates: 6
  • Update frequency: every 19.5 days
  • Top authors: ndmscorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /996 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.00MB] [CPU: ▼11.35ms] Passed 4 tests

Server-side resources used by NDMS ePay Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.16 ▼3.07
Dashboard /wp-admin3.32 ▼0.0346.65 ▼14.74
Posts /wp-admin/edit.php3.37 ▲0.0146.90 ▲0.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.64 ▼28.28
Media Library /wp-admin/upload.php3.24 ▲0.0134.03 ▲0.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by NDMS ePay Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.74 ▲0.361.88 ▲0.0546.31 ▲2.91
Dashboard /wp-admin2,210 ▲225.82 ▲0.9498.87 ▼20.7536.67 ▼10.87
Posts /wp-admin/edit.php2,074 ▼152.05 ▲0.0438.62 ▲0.8435.97 ▲0.66
Add New Post /wp-admin/post-new.php1,521 ▼2117.81 ▼0.69687.19 ▲13.4555.96 ▼5.39
Media Library /wp-admin/upload.php1,398 ▲74.26 ▲0.0496.19 ▼2.9341.45 ▼0.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ecommerce, payment gateway, woocommerce

ndms-epay-plus-for-woocommerce/woocommerce-gateway-epayplus.php 69% from 13 tests

The main PHP file in "NDMS ePay Plus" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ndms-epay-plus-for-woocommerce.php" instead of "woocommerce-gateway-epayplus.php")
  • Domain Path: The domain path folder was not found ("/languages/")
  • Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)

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
There were no executable files found in this plugin1,343 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42793031,343

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity46.25
▷ Minimum class complexity5.00
▷ Maximum class complexity127.00
Average method complexity6.03
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3494.44%
▷ Protected methods25.56%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cards.png4.98KB2.14KB▼ 57.03%
images/logo.png59.52KB4.61KB▼ 92.26%