94% gamipress-ws-form-integration

Code Review | GamiPress - WS Form integration

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

About plugin

  • Plugin page: gamipress-ws-form...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 1, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 4
  • Update frequency: every 51.8 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 179 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by GamiPress - WS Form integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0654.78 ▲2.63
Dashboard /wp-admin3.43 ▲0.0333.18 ▼1.36
Posts /wp-admin/edit.php3.67 ▲0.0335.93 ▼2.26
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.46 ▼1,180.65
Media Library /wp-admin/upload.php3.32 ▲0.0225.12 ▲0.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GamiPress - WS Form integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲6915.91 ▼0.105.66 ▼0.062.36 ▲0.04
Dashboard /wp-admin2,923 ▲626.03 ▼0.16119.54 ▼23.58156.71 ▼8.47
Posts /wp-admin/edit.php2,722 ▲313.25 ▲0.0162.47 ▲1.38140.54 ▲5.01
Add New Post /wp-admin/post-new.php1,787 ▲12621.22 ▼0.46454.15 ▲58.67160.35 ▲5.77
Media Library /wp-admin/upload.php1,726 ▲285.57 ▲0.04143.21 ▲3.04189.12 ▲3.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-ws-form-integration/gamipress-ws-form.php:230

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 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

gamipress-ws-form-integration/gamipress-ws-form.php 92% from 13 tests

The main PHP script in "GamiPress - WS Form integration" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-ws-form-integration.php" instead of "gamipress-ws-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected476 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8193425440
JavaScript212436

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin