84% integration-for-billingo-gravity-forms

Code Review | Integration for Billingo & Gravity Forms

WordPress plugin Integration for Billingo & Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: integration-for-b...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 11, 2021
  • Latest release: Oct 20, 2023
  • Number of updates: 15
  • Update frequency: every 51.3 days
  • Top authors: passatgt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /604 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Integration for Billingo & Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼1.59
Dashboard /wp-admin3.31 ▼0.0345.69 ▼12.40
Posts /wp-admin/edit.php3.36 ▲0.0144.52 ▼3.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.48 ▼26.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.40 ▼1.65

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

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

Browser metrics Passed 4 tests

Integration for Billingo & Gravity Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.53 ▼0.061.72 ▼0.1642.30 ▲4.38
Dashboard /wp-admin2,195 ▲145.48 ▼0.2597.27 ▼3.2641.50 ▲2.65
Posts /wp-admin/edit.php2,100 ▲211.98 ▼0.0235.11 ▼0.3631.56 ▼1.31
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▲0.17684.00 ▲89.3360.62 ▲7.09
Media Library /wp-admin/upload.php1,403 ▼04.13 ▼0.09112.80 ▲16.3347.45 ▲7.48

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/integration-for-billingo-gravity-forms/class-gf-billingo.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: magyar, gravity forms, szamlazo, billingo

integration-for-billingo-gravity-forms/index.php 92% from 13 tests

This is the main PHP file of "Integration for Billingo & Gravity Forms" 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
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("integration-for-billingo-gravity-forms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,795 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP72841271,605
JavaScript2145111628
PO File1162179419
CSS1263123
SVG20020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity41.00
▷ Minimum class complexity2.00
▷ Maximum class complexity121.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods65
▷ Static methods1218.46%
▷ Public methods6498.46%
▷ Protected methods00.00%
▷ Private methods11.54%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/avatar.png2.20KB1.12KB▼ 49.07%