84% wider-gravity-forms-stop-entries

Code Review | Wider Gravity Forms Stop Entries

WordPress plugin Wider Gravity Forms Stop Entries scored84%from 54 tests.

About plugin

  • Plugin page: wider-gravity-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 1, 2017
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: wearewider (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /4,055 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.31ms] Passed 4 tests

An overview of server-side resources used by Wider Gravity Forms Stop Entries
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.13 ▲4.05
Dashboard /wp-admin3.34 ▼0.0048.01 ▼10.84
Posts /wp-admin/edit.php3.40 ▲0.0452.08 ▲4.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.57 ▼15.12
Media Library /wp-admin/upload.php3.27 ▲0.0436.90 ▲0.66
Gravity Forms Stop Entries /wp-admin/options-general.php?page=wider-gf-stop-entries3.2329.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Wider Gravity Forms Stop Entries
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.111.78 ▲0.2243.53 ▲2.89
Dashboard /wp-admin2,199 ▲195.54 ▼0.0584.70 ▼8.1338.62 ▼0.90
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0040.46 ▲3.9336.86 ▼2.45
Add New Post /wp-admin/post-new.php1,529 ▲323.41 ▲0.36687.97 ▲3.8955.22 ▲3.93
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.01102.68 ▼1.0245.01 ▲2.82
Gravity Forms Stop Entries /wp-admin/options-general.php?page=wider-gf-stop-entries7711.9923.7326.17

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wider-gravity-forms-stop-entries/wider-gravity-forms-stop-entries.php:278

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: gravity forms, gdpr, privacy

wider-gravity-forms-stop-entries/wider-gravity-forms-stop-entries.php 85% from 13 tests

The primary PHP file in "Wider Gravity Forms Stop Entries" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 296 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

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 detected137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17963137

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin