77% i-pay-you

Code Review | I Pay You

WordPress plugin I Pay You scored77%from 54 tests.

About plugin

  • Plugin page: i-pay-you
  • Plugin version: 1.1
  • PHP compatiblity: 6.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 1, 2023
  • Latest release: Sep 1, 2023
  • Number of updates: 4
  • Update frequency: every 22.5 days
  • Top authors: afiwai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /45 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.66ms] 75% from 4 tests

A check of server-side resources used by I Pay You
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 2,598.37ms on /wp-admin/admin.php?page=afiwai-design)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.44 ▲1.08
Dashboard /wp-admin3.34 ▲0.0453.27 ▲0.70
Posts /wp-admin/edit.php3.39 ▲0.0348.88 ▼0.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.04 ▼4.03
Media Library /wp-admin/upload.php3.26 ▲0.0337.99 ▲1.54
I Pay You /wp-admin/admin.php?page=ipayou-paypalme-options3.2332.81
AFIWAI DESIGN /wp-admin/admin.php?page=afiwai-design3.282,598.37

Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/i-pay-you/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for I Pay You
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5613.26 ▼1.391.81 ▼0.3641.65 ▼1.80
Dashboard /wp-admin2,242 ▲395.88 ▲0.97100.37 ▼16.2640.47 ▼4.37
Posts /wp-admin/edit.php2,130 ▲272.00 ▼0.0234.97 ▼0.6333.37 ▼2.82
Add New Post /wp-admin/post-new.php1,567 ▲2223.08 ▼0.39674.27 ▲32.1166.07 ▲12.97
Media Library /wp-admin/upload.php1,430 ▲304.31 ▲0.13104.77 ▼1.6345.28 ▼2.52
I Pay You /wp-admin/admin.php?page=ipayou-paypalme-options8872.0421.7428.69
AFIWAI DESIGN /wp-admin/admin.php?page=afiwai-design1,2745.20160.95139.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× 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/i-pay-you/i-pay-you.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=afiwai-design
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=afiwai-design - Access to font at 'https://afiwai.com/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=afiwai-design
    • > Network (severe)
    https://afiwai.com/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.woff - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=afiwai-design
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=afiwai-design - Access to font at 'https://afiwai.com/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.ttf' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=afiwai-design
    • > Network (severe)
    https://afiwai.com/wp-content/themes/Divi/core/admin/fonts/modules/all/modules.ttf - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Panel Control to insert the PayPal ID), #2 (Enter the amount), #3 (Click on the payment link), #4 (Payment Paypal)
The official readme.txt might help

i-pay-you/i-pay-you.php 92% from 13 tests

This is the main PHP file of "I Pay You" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • 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 review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected256 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14525179
PO File1151546
CSS15021
JavaScript11010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin