84% woo-e-pul

Code Review | E-PUL PayViaEpul

WordPress plugin E-PUL PayViaEpul scored84%from 54 tests.

About plugin

  • Plugin page: woo-e-pul
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 22, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: derskythe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.28ms] Passed 4 tests

A check of server-side resources used by E-PUL PayViaEpul
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.06 ▲2.33
Dashboard /wp-admin3.31 ▲0.0144.64 ▼6.94
Posts /wp-admin/edit.php3.36 ▲0.0150.22 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.19 ▼8.71
Media Library /wp-admin/upload.php3.23 ▲0.0133.30 ▼3.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for E-PUL PayViaEpul
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.351.56 ▼0.1541.61 ▼0.89
Dashboard /wp-admin2,192 ▲155.55 ▲0.0488.40 ▼3.8237.94 ▼3.43
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0738.93 ▼0.0338.41 ▲1.21
Add New Post /wp-admin/post-new.php1,526 ▼023.72 ▲0.94672.76 ▼13.5362.46 ▲1.67
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.1296.11 ▼7.2042.51 ▼6.79

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-e-pul/woocommerce-e-pul-gateway.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-e-pul/woocommerce-e-pul.php:3

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: payviaepul, payflow, epul, dodirectpayment, payments pro...

woo-e-pul/woocommerce-e-pul-gateway.php 85% from 13 tests

The principal PHP file in "E-PUL PayViaEpul" v. 1... is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-e-pul.php" instead of "woocommerce-e-pul-gateway.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin268 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25853268

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
epul.png3.38KB1.02KB▼ 69.89%