90% valuepay-for-fluent-forms

Code Review | ValuePay for Fluent Forms

WordPress plugin ValuePay for Fluent Forms scored90%from 54 tests.

About plugin

  • Plugin page: valuepay-for-flue...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2022
  • Latest release: May 12, 2022
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: valuepaymy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /629 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.00MB] [CPU: ▼8.81ms] Passed 4 tests

This is a short check of server-side resources used by ValuePay for Fluent Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.53 ▼0.59
Dashboard /wp-admin3.32 ▼0.0347.84 ▼17.97
Posts /wp-admin/edit.php3.37 ▲0.0144.28 ▼4.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.87 ▼12.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.64 ▲4.49

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ValuePay for Fluent Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.37 ▲0.111.77 ▲0.0648.29 ▲6.85
Dashboard /wp-admin2,205 ▲245.62 ▼0.0887.05 ▼18.0337.45 ▼2.10
Posts /wp-admin/edit.php2,110 ▲71.97 ▲0.0237.71 ▲0.6733.35 ▲1.11
Add New Post /wp-admin/post-new.php1,538 ▲1123.12 ▲0.09607.19 ▲7.7873.99 ▲11.03
Media Library /wp-admin/upload.php1,404 ▲74.16 ▼0.0499.61 ▼2.4943.67 ▲0.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 uses markdown syntax to describe your plugin to the world
3 plugin tags: fluent forms, payment, valuepay

valuepay-for-fluent-forms/valuepay-fluentform.php 92% from 13 tests

Analyzing the main PHP file in "ValuePay for Fluent Forms" version 1.0.3
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("valuepay-for-fluent-forms.php" instead of "valuepay-fluentform.php")

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
Everything looks great! No dangerous files found in this plugin918 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP1034593918

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.43
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods3261.54%
▷ Protected methods47.69%
▷ Private methods1630.77%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin