94% gamipress-happyforms-integration

Code Review | GamiPress - HappyForms integration

WordPress plugin GamiPress - HappyForms integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-happyfo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 30, 2020
  • Latest release: Jan 24, 2022
  • Number of updates: 7
  • Update frequency: every 77.7 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 401 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by GamiPress - HappyForms integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0670.15 ▼7.09
Dashboard /wp-admin3.43 ▲0.0334.85 ▼0.75
Posts /wp-admin/edit.php3.66 ▲0.0340.41 ▲1.66
Add New Post /wp-admin/post-new.php6.90 ▼0.06101.83 ▼1,176.72
Media Library /wp-admin/upload.php3.32 ▲0.0228.46 ▲4.11

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - HappyForms integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4515.86 ▲0.357.09 ▲0.622.61 ▼0.08
Dashboard /wp-admin2,909 ▲526.12 ▼0.01122.50 ▼13.15153.98 ▼8.85
Posts /wp-admin/edit.php2,716 ▲293.25 ▲0.0267.60 ▲2.11140.46 ▼8.19
Add New Post /wp-admin/post-new.php1,773 ▲11221.43 ▲5.31472.18 ▲39.52163.25 ▼5.68
Media Library /wp-admin/upload.php1,726 ▲285.50 ▲0.00164.74 ▲22.48205.90 ▼11.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-happyforms-integration/gamipress-happyforms.php:224

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

gamipress-happyforms-integration/gamipress-happyforms.php 92% from 13 tests

The main file in "GamiPress - HappyForms integration" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gamipress-happyforms-integration.php" instead of "gamipress-happyforms.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
Everything looks great! No dangerous files found in this plugin332 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7125327296
JavaScript212436

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected