82% frm-qpaypro

Code Review | Payment Gateway for QPayPro on Formidable

WordPress plugin Payment Gateway for QPayPro on Formidable scored82%from 54 tests.

About plugin

  • Plugin page: frm-qpaypro
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 16, 2020
  • Latest release: Mar 2, 2021
  • Number of updates: 14
  • Update frequency: every 9.8 days
  • Top authors: XicoOfficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Payment Gateway for QPayPro on Formidable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.74 ▼1.16
Dashboard /wp-admin3.35 ▲0.0052.42 ▼14.62
Posts /wp-admin/edit.php3.40 ▲0.0448.24 ▲0.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.56 ▼11.31
Media Library /wp-admin/upload.php3.27 ▲0.0437.88 ▲0.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Payment Gateway for QPayPro on Formidable
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.38 ▲0.062.17 ▼0.0747.18 ▲2.49
Dashboard /wp-admin2,192 ▲155.64 ▲0.0787.89 ▼14.6738.39 ▼7.87
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0533.76 ▼4.8934.22 ▼0.04
Add New Post /wp-admin/post-new.php1,547 ▲123.11 ▼0.07627.90 ▼57.1554.81 ▼0.36
Media Library /wp-admin/upload.php1,397 ▼34.24 ▼0.0297.17 ▼12.7743.34 ▼5.35

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/frm-qpaypro/admin/views/settings/form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function formidable_qpaypro\\Admin\\add_action() in wp-content/plugins/frm-qpaypro/admin/wp-actions.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function formidable_qpaypro\\Admin\\add_filter() in wp-content/plugins/frm-qpaypro/admin/wp-filters.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: A description for screenshot #4 is required in frm-qpaypro/assets to your readme.txt
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Screenshots: Screenshot #5 (Example of how to setup field keys in orther to match qpaypro requirements.) image required
The official readme.txt is a good inspiration

frm-qpaypro/formidable-qpaypro.php 77% from 13 tests

The main PHP script in "Payment Gateway for QPayPro on Formidable" version 0.0.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("frm-qpaypro.php" instead of "formidable-qpaypro.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,173 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP123113481,173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity32.17
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods5975.64%
▷ Public methods5367.95%
▷ Protected methods00.00%
▷ Private methods2532.05%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.71MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png235.65KB140.82KB▼ 40.24%
assets/screenshot-4.png128.35KB60.92KB▼ 52.54%
assets/icon-128x128.png6.06KB3.44KB▼ 43.30%
assets/screenshot-2.PNG135.06KB71.32KB▼ 47.19%
assets/screenshot-3.PNG44.91KB21.60KB▼ 51.90%