90% securepay-for-fluentforms

Code Review | SecurePay For Fluent Forms

WordPress plugin SecurePay For Fluent Forms scored90%from 54 tests.

About plugin

  • Plugin page: securepay-for-flu...
  • 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: Oct 29, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 12
  • Update frequency: every 56.5 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by SecurePay For Fluent Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.43 ▲4.22
Dashboard /wp-admin3.32 ▲0.0147.07 ▲0.94
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▼2.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.87 ▼35.08
Media Library /wp-admin/upload.php3.24 ▲0.0138.98 ▲6.26

Server storage [IO: ▲0.30MB] [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: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SecurePay For Fluent Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.61 ▲0.082.00 ▲0.5539.09 ▲0.45
Dashboard /wp-admin2,206 ▲385.59 ▲0.0189.88 ▼2.5643.16 ▼1.17
Posts /wp-admin/edit.php2,111 ▲112.03 ▲0.0140.93 ▲7.4839.04 ▲2.32
Add New Post /wp-admin/post-new.php1,545 ▲1123.38 ▲5.02626.73 ▲18.0068.69 ▲7.38
Media Library /wp-admin/upload.php1,411 ▲84.17 ▼0.10100.69 ▲1.9345.01 ▲2.65

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: payment gateway, online banking, payment platform, fpx, malaysia

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

The main PHP script in "SecurePay For Fluent Forms" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • 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 check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,056 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP617067942
JavaScript28167
CSS26047

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity30.50
▷ Minimum class complexity3.00
▷ Maximum class complexity97.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods40
▷ Static methods1537.50%
▷ Public methods2767.50%
▷ Protected methods12.50%
▷ Private methods1230.00%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants11
▷ Global constants11100.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
29 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/bnk/uob0226.png1.88KB1.44KB▼ 23.54%
includes/admin/bnk/scb0216.png4.63KB2.54KB▼ 45.01%
includes/admin/bnk/mb2u0227.png7.57KB3.35KB▼ 55.79%
includes/admin/bnk/uob0229.png1.88KB1.44KB▼ 23.54%
includes/admin/bnk/bkrm0602.png2.51KB1.57KB▼ 37.53%