84% gf-registration-for-editor-role

Code Review | Add Editor Role to Gravity Forms Registration

WordPress plugin Add Editor Role to Gravity Forms Registration scored 84% from 54 tests.

About plugin

  • Plugin page: gf-registration-f...
  • Plugin version: 0.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Aug 12, 2023
  • Number of updates: 22
  • Update frequency: every 78.8 days
  • Top authors: kgmservizi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,088 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
Installer ran successfully

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

Server-side resources used by Add Editor Role to Gravity Forms Registration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.70 ▲0.88
Dashboard /wp-admin3.31 ▲0.0145.55 ▼1.37
Posts /wp-admin/edit.php3.36 ▲0.0049.13 ▲0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.94 ▼10.74
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▲1.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Add Editor Role to Gravity Forms Registration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.68 ▼0.761.61 ▲0.0539.59 ▲0.33
Dashboard /wp-admin2,210 ▲225.86 ▲0.01111.13 ▲0.8541.72 ▼5.13
Posts /wp-admin/edit.php2,089 ▼32.12 ▲0.0639.77 ▼1.4236.03 ▼1.19
Add New Post /wp-admin/post-new.php1,542 ▲1423.14 ▲4.74635.53 ▲7.5151.06 ▼3.16
Media Library /wp-admin/upload.php1,395 ▲104.31 ▲0.02101.20 ▲0.5341.98 ▼2.36

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 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/gf-registration-for-editor-role/gf-registration-for-editor-role.php:20

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: gravity forms editor, gravity role, gravity editor role, gravity registration editor, gravity forms...

gf-registration-for-editor-role/gf-registration-for-editor-role.php Passed 13 tests

The main PHP file in "Add Editor Role to Gravity Forms Registration" ver. 0.3.4 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Show Gravity Form Registration for Editor role

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
Success! There were no dangerous files found in this plugin22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP241422

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin