83% integration-for-szamlazz-hu-gravity-forms

Code Review | Integration for Szamlazz.hu & Gravity Forms

WordPress plugin Integration for Szamlazz.hu & Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: integration-for-s...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Oct 2, 2023
  • Number of updates: 33
  • Update frequency: every 51.1 days
  • Top authors: passatgt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,593 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Integration for Szamlazz.hu & Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.78 ▼1.55
Dashboard /wp-admin3.31 ▲0.0143.22 ▼4.32
Posts /wp-admin/edit.php3.37 ▲0.0143.81 ▼2.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.06 ▼8.23
Media Library /wp-admin/upload.php3.24 ▲0.0131.77 ▼5.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Integration for Szamlazz.hu & Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.051.68 ▲0.0136.76 ▼4.97
Dashboard /wp-admin2,189 ▲125.61 ▼0.0190.43 ▲3.5941.83 ▲2.28
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0433.98 ▼6.6038.84 ▲4.95
Add New Post /wp-admin/post-new.php1,526 ▼223.47 ▲0.20681.20 ▼8.8768.30 ▼0.93
Media Library /wp-admin/upload.php1,397 ▼34.17 ▲0.0395.93 ▼26.8343.94 ▼10.51

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/integration-for-szamlazz-hu-gravity-forms/class-gf-szamlazz.php:3

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 90% 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: szamlazz, magyar, szamlazo, gravity forms, szamlazzhu

integration-for-szamlazz-hu-gravity-forms/index.php 77% from 13 tests

The primary PHP file in "Integration for Szamlazz.hu & Gravity Forms" version 1.2.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integration-for-szamlazz-hu-gravity-forms.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,737 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP93792141,897
JavaScript2162113688
CSS1263125
SVG30227

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity45.50
▷ Minimum class complexity2.00
▷ Maximum class complexity138.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods62
▷ Static methods1422.58%
▷ Public methods6198.39%
▷ Protected methods00.00%
▷ Private methods11.61%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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.png1.45KB1.14KB▼ 21.83%