90% woocommerce-epaybg

Code Review | WooCommerce ePay.bg

WordPress plugin WooCommerce ePay.bg scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-epaybg
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Apr 6, 2015
  • Latest release: Nov 11, 2017
  • Number of updates: 19
  • Update frequency: every 50.0 days
  • Top authors: dimitrov.adrian (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /4,751 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WooCommerce ePay.bg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.71 ▼7.20
Dashboard /wp-admin3.31 ▲0.0150.53 ▼3.53
Posts /wp-admin/edit.php3.36 ▲0.0047.97 ▼3.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.76 ▼13.18
Media Library /wp-admin/upload.php3.23 ▲0.0032.41 ▼3.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce ePay.bg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.531.74 ▲0.0342.17 ▼3.59
Dashboard /wp-admin2,201 ▲215.51 ▼0.1785.23 ▼5.6141.03 ▼5.03
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0134.50 ▼5.8338.19 ▼2.21
Add New Post /wp-admin/post-new.php1,532 ▲623.04 ▼0.03637.46 ▼79.4253.03 ▲0.83
Media Library /wp-admin/upload.php1,409 ▲94.21 ▲0.04104.24 ▼6.0343.80 ▼0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gateway, epaybg, payment, woocommerce

woocommerce-epaybg/woocommerce-epaybg.php 92% from 13 tests

The primary PHP file in "WooCommerce ePay.bg" version 1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 197 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected973 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4131251698
PO File15967275

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.75
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods2890.32%
▷ Protected methods13.23%
▷ Private methods26.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-epaybg_directpay@2x.png44.73KB13.95KB▼ 68.81%
assets/icon-epaybg.png4.79KB1.66KB▼ 65.41%
assets/icon-epaybg_easypay.png5.71KB1.95KB▼ 65.87%
assets/icon-epaybg_directpay.png9.22KB2.86KB▼ 68.99%
assets/icon-epaybg@2x.png20.89KB9.43KB▼ 54.83%