84% idpay-mycred

Code Review | IDPay For MyCred

WordPress plugin IDPay For MyCred scored84%from 54 tests.

About plugin

  • Plugin page: idpay-mycred
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Nov 13, 2022
  • Number of updates: 13
  • Update frequency: every 99.0 days
  • Top authors: idpayir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,150 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
Install script ran successfully

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

Server-side resources used by IDPay For MyCred
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▼2.47
Dashboard /wp-admin3.31 ▲0.0147.46 ▼1.85
Posts /wp-admin/edit.php3.36 ▲0.0150.86 ▼0.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.32 ▼8.35
Media Library /wp-admin/upload.php3.23 ▲0.0136.89 ▲2.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for IDPay For MyCred
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼0.962.12 ▼0.4840.15 ▼4.41
Dashboard /wp-admin2,209 ▲185.91 ▲0.0698.73 ▼7.7238.17 ▼4.85
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0136.90 ▲0.3132.95 ▼3.41
Add New Post /wp-admin/post-new.php1,520 ▼1323.14 ▼0.13691.59 ▲3.3670.95 ▲11.40
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0796.46 ▼12.6643.34 ▼3.83

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
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idpay-mycred/class-mycred-gateway-idpay.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: gateway, idpay, payment, point, mycred...

idpay-mycred/idpay-mycred.php Passed 13 tests

"IDPay For MyCred" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
IDPay payment gateway for myCRED

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin572 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP38565547
SVG10125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin