89% eazypay

Code Review | Eazypay Payment Provider

WordPress plugin Eazypay Payment Provider scored89%from 54 tests.

About plugin

  • Plugin page: eazypay
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: Feb 19, 2021
  • Number of updates: 21
  • Update frequency: every 16.3 days
  • Top authors: supporteazypay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Eazypay Payment Provider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.60 ▼3.33
Dashboard /wp-admin3.31 ▲0.0049.79 ▼2.23
Posts /wp-admin/edit.php3.36 ▲0.0052.79 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.51 ▼11.13
Media Library /wp-admin/upload.php3.23 ▲0.0039.64 ▲0.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Eazypay Payment Provider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.051.93 ▼0.3243.19 ▲0.07
Dashboard /wp-admin2,195 ▲155.63 ▼0.0397.85 ▲0.4739.56 ▼0.53
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0336.10 ▼2.7336.80 ▲0.94
Add New Post /wp-admin/post-new.php1,526 ▼523.20 ▲0.31656.17 ▼20.1655.74 ▲1.55
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0296.45 ▼8.0544.27 ▲2.00

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt is a good inspiration

eazypay/eazypay.php 92% from 13 tests

"Eazypay Payment Provider" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin343 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112851295
JavaScript19048

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.28
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.54MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-2.png61.85KB23.06KB▼ 62.72%
assets/images/screenshot-5.png146.61KB51.80KB▼ 64.67%
assets/images/screenshot-1.png34.07KB12.53KB▼ 63.22%
assets/images/logo.png2.28KB1.68KB▼ 26.23%
assets/images/screenshot-4.png169.15KB52.21KB▼ 69.13%