90% securepay-for-givewp

Code Review | SecurePay For GiveWP

WordPress plugin SecurePay For GiveWP scored90%from 54 tests.

About plugin

  • Plugin page: securepay-for-givewp
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 10
  • Update frequency: every 74.2 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.67ms] Passed 4 tests

An overview of server-side resources used by SecurePay For GiveWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0354.36 ▲8.35
Dashboard /wp-admin3.33 ▲0.0251.00 ▼4.67
Posts /wp-admin/edit.php3.38 ▲0.0253.13 ▼3.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.47 ▼17.89
Media Library /wp-admin/upload.php3.25 ▲0.0239.30 ▼0.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SecurePay For GiveWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.44 ▲0.071.89 ▲0.1541.32 ▼9.69
Dashboard /wp-admin2,200 ▲265.52 ▼0.1887.38 ▼9.7239.59 ▼7.00
Posts /wp-admin/edit.php2,111 ▲112.01 ▲0.0241.19 ▲4.7837.39 ▲0.99
Add New Post /wp-admin/post-new.php1,560 ▲2923.55 ▲0.35651.77 ▼47.3851.55 ▲0.23
Media Library /wp-admin/upload.php1,411 ▲114.23 ▼0.01103.31 ▲0.1146.12 ▲1.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: online banking, malaysia, payment gateway, payment platform, fpx

securepay-for-givewp/securepay-for-givewp.php 92% from 13 tests

This is the main PHP file of "SecurePay For GiveWP" version 1.0.5, 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: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin1,103 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP515559990
JavaScript29173
CSS25040

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity59.50
▷ Minimum class complexity8.00
▷ Maximum class complexity111.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods33
▷ Static methods1133.33%
▷ Public methods1751.52%
▷ Protected methods00.00%
▷ Private methods1648.48%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants10
▷ Global constants10100.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
30 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/bnk/hsbc0223.png1.91KB1.21KB▼ 36.50%
includes/admin/bnk/kfh0346.png5.25KB2.74KB▼ 47.81%
includes/admin/bnk/bimb0340.png2.05KB1.33KB▼ 35.39%
includes/admin/bnk/bcbb0235.png2.86KB1.79KB▼ 37.32%
includes/admin/bnk/mbb0228.png7.57KB3.35KB▼ 55.79%