84% qinvoice-sisow-ideal-for-gravity-forms

Code Review | q-invoice Sisow iDeal for Gravity Forms

WordPress plugin q-invoice Sisow iDeal for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: qinvoice-sisow-id...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 10, 2020
  • Latest release: Mar 10, 2020
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: q-invoice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.10ms] Passed 4 tests

Analyzing server-side resources used by q-invoice Sisow iDeal for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.00 ▼3.83
Dashboard /wp-admin3.31 ▼0.0352.18 ▼5.79
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▲0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.23 ▼8.28
Media Library /wp-admin/upload.php3.24 ▲0.0132.42 ▼2.51

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for q-invoice Sisow iDeal for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.59 ▼0.0638.53 ▼0.31
Dashboard /wp-admin2,192 ▲175.56 ▼0.1881.98 ▼16.7934.53 ▼5.20
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0233.77 ▲0.5132.43 ▼1.22
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▼0.40620.00 ▼60.3449.05 ▼3.84
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0195.26 ▼0.4341.04 ▼1.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/qinvoice-sisow-ideal-for-gravity-forms/class-qinvoice-sisow.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qinvoice-sisow-ideal-for-gravity-forms/qinvoice-sisow-ideal-for-gravity-forms.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "n/a"
You can look at the official readme.txt

qinvoice-sisow-ideal-for-gravity-forms/qinvoice-sisow-ideal-for-gravity-forms.php Passed 13 tests

Analyzing the main PHP file in "q-invoice Sisow iDeal for Gravity Forms" version 0.0.1
70 characters long description:
Accept iDeal (and other) payments through Sisow for your Gravity Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin691 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP313957645
PO File1121346

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity22.33
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods413.33%
▷ Public methods2066.67%
▷ Protected methods00.00%
▷ Private methods1033.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin