10% wp-payeezy-pay

Code Review | WP Payeezy Pay

WordPress plugin WP Payeezy Pay scored10%from 54 tests.

About plugin

  • Plugin page: wp-payeezy-pay
  • Plugin version: 3.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2015
  • Latest release: Jun 18, 2023
  • Number of updates: 212
  • Update frequency: every 13.7 days
  • Top authors: RickRottman (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

600+ active /35,000 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.66ms] Passed 4 tests

Analyzing server-side resources used by WP Payeezy Pay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.79 ▼2.81
Dashboard /wp-admin3.46 ▲0.1545.28 ▼1.99
Posts /wp-admin/edit.php3.51 ▲0.1544.70 ▼7.23
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.25 ▼10.60
Media Library /wp-admin/upload.php3.38 ▲0.1535.59 ▲1.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Payeezy Pay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.33 ▼1.421.72 ▼0.2539.77 ▲3.75
Dashboard /wp-admin2,224 ▲365.79 ▲0.91103.93 ▼13.1071.99 ▲26.25
Posts /wp-admin/edit.php2,113 ▲242.00 ▲0.0136.88 ▲1.6034.79 ▲5.45
Add New Post /wp-admin/post-new.php1,695 ▲15824.81 ▲1.51641.88 ▼14.4473.22 ▲20.49
Media Library /wp-admin/upload.php1,408 ▲174.19 ▼0.0594.43 ▼11.5976.88 ▲31.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-payeezy-pay/wp-payeezy-pay.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 require attention: The official readme.txt might help

wp-payeezy-pay/wp-payeezy-pay.php Passed 13 tests

The main PHP file in "WP Payeezy Pay" ver. 3.18 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Connects a WordPress site to the Payeezy Gateway using the Payment Page/Hosted Checkout method of integration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,486 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP166801,479
SVG1017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin