89% ezpays-pay

Code Review | EzpaysPay

WordPress plugin EzpaysPay scored89%from 54 tests.

About plugin

  • Plugin page: ezpays-pay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Dec 22, 2022
  • Latest release: Mar 17, 2023
  • Number of updates: 4
  • Update frequency: every 25.3 days
  • Top authors: ezpays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,264 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by EzpaysPay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.37 ▼6.77
Dashboard /wp-admin3.32 ▼0.0244.31 ▼19.01
Posts /wp-admin/edit.php3.37 ▲0.0245.39 ▼0.96
Add New Post /wp-admin/post-new.php5.90 ▲0.02115.95 ▲16.24
Media Library /wp-admin/upload.php3.25 ▲0.0235.61 ▲2.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for EzpaysPay
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.21 ▼1.381.55 ▼0.6441.77 ▼4.97
Dashboard /wp-admin2,214 ▲235.83 ▲0.96109.82 ▼4.9042.18 ▼1.38
Posts /wp-admin/edit.php2,096 ▲102.11 ▲0.1039.85 ▲1.8936.41 ▲0.12
Add New Post /wp-admin/post-new.php1,541 ▲2223.07 ▲0.05616.67 ▼46.1756.57 ▲11.12
Media Library /wp-admin/upload.php1,396 ▲84.32 ▲0.0396.59 ▼2.7241.92 ▼3.66

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings page to add your apikey.), #2 (How the payment method looks.)
Please take inspiration from this readme.txt

ezpays-pay/ezpays-pay.php 77% from 13 tests

The main PHP file in "EzpaysPay" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.4")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected633 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7207480608
JavaScript14019
SVG2006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods42
▷ Static methods921.43%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected