89% idpay

Code Review | IDPay

WordPress plugin IDPay scored89%from 54 tests.

About plugin

  • Plugin page: idpay
  • Plugin version: 1.10.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Sep 14, 2023
  • Number of updates: 13
  • Update frequency: every 108.9 days
  • Top authors: idsbdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.00ms] Passed 4 tests

An overview of server-side resources used by IDPay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0647.29 ▲4.75
Dashboard /wp-admin3.41 ▲0.0652.80 ▼2.13
Posts /wp-admin/edit.php3.52 ▲0.1250.58 ▼2.43
Add New Post /wp-admin/post-new.php5.99 ▲0.0685.05 ▼9.41
Media Library /wp-admin/upload.php3.33 ▲0.0536.84 ▼2.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

IDPay: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.70 ▲0.0639.78 ▼4.80
Dashboard /wp-admin2,195 ▲215.56 ▲0.0289.32 ▼18.0740.24 ▼4.95
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0038.42 ▲0.6332.54 ▼5.04
Add New Post /wp-admin/post-new.php1,526 ▼1223.03 ▲0.09711.70 ▲23.3553.97 ▲1.43
Media Library /wp-admin/upload.php1,394 ▼94.19 ▲0.0099.47 ▼4.2445.99 ▼1.80

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === idpay === )
Please take inspiration from this readme.txt

idpay/index.php 85% from 13 tests

The main file in "IDPay" v. 1.10.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("2.4" instead of "2.6.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("idpay.php" instead of "index.php")

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
No dangerous file extensions were detected319 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14241319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity5.50
▷ Minimum method complexity2.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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
No PNG files were detected