84% securepay-for-wpforms

Code Review | SecurePay For WPForms

WordPress plugin SecurePay For WPForms scored84%from 54 tests.

About plugin

  • Plugin page: securepay-for-wpf...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 7, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 21
  • Update frequency: every 36.2 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,156 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.03MB] [CPU: ▼2.54ms] Passed 4 tests

Analyzing server-side resources used by SecurePay For WPForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.95 ▼1.21
Dashboard /wp-admin3.33 ▲0.0348.65 ▼2.72
Posts /wp-admin/edit.php3.39 ▲0.0350.17 ▲1.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.98 ▼7.67
Media Library /wp-admin/upload.php3.26 ▲0.0340.47 ▲4.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for SecurePay For WPForms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.29 ▲0.061.85 ▲0.1641.47 ▼5.30
Dashboard /wp-admin2,206 ▲255.58 ▼0.1185.05 ▼25.6742.98 ▼0.20
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0435.24 ▼3.2136.97 ▼2.54
Add New Post /wp-admin/post-new.php1,534 ▲622.97 ▼0.18690.35 ▼3.3366.98 ▲10.59
Media Library /wp-admin/upload.php1,411 ▲174.21 ▲0.01112.13 ▲8.7449.04 ▲3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPForms_Payment' not found in wp-content/plugins/securepay-for-wpforms/includes/src/WPForms_SecurePay_Payment.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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: fpx, payment gateway, malaysia, payment platform, online banking

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

This is the main PHP file of "SecurePay For WPForms" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,015 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP414261927
CSS27050
JavaScript26138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity69.00
▷ Minimum class complexity11.00
▷ Maximum class complexity127.00
Average method complexity6.77
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods27
▷ Static methods1140.74%
▷ Public methods1555.56%
▷ Protected methods00.00%
▷ Private methods1244.44%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/bnk/abb0234.png3.99KB2.19KB▼ 45.11%
includes/admin/bnk/abmb0212.png2.70KB1.63KB▼ 39.49%
includes/admin/bnk/abb0233.png3.99KB2.19KB▼ 45.11%
includes/admin/securepay-bank-alt.png55.21KB17.34KB▼ 68.59%
includes/admin/bnk/hlb0224.png4.09KB2.13KB▼ 48.01%