84% noactive-for-gravityforms

Code Review | No Active for GravityForms

WordPress plugin No Active for GravityForms scored84%from 54 tests.

About plugin

  • Plugin page: noactive-for-grav...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Aug 25, 2021
  • Latest release: Aug 26, 2021
  • Number of updates: 4
  • Update frequency: every 33.5 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 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
Install script ran successfully

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

This is a short check of server-side resources used by No Active for GravityForms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.92 ▲0.21
Dashboard /wp-admin3.32 ▲0.0146.41 ▼3.64
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▲2.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.15 ▼10.82
Media Library /wp-admin/upload.php3.24 ▲0.0132.80 ▼0.83
No Active for GForms /wp-admin/options-general.php?page=noactive-for-gravityforms/includes/admin/options.php3.2130.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by No Active for GravityForms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.36 ▼0.051.79 ▲0.1544.30 ▼2.72
Dashboard /wp-admin2,202 ▲255.62 ▲0.0481.77 ▼12.5438.79 ▼2.44
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0636.91 ▼5.3132.52 ▼2.49
Add New Post /wp-admin/post-new.php1,531 ▼423.45 ▲5.28598.93 ▼39.6948.68 ▼23.38
Media Library /wp-admin/upload.php1,401 ▲44.20 ▲0.0298.14 ▼2.3140.89 ▼2.68
No Active for GForms /wp-admin/options-general.php?page=noactive-for-gravityforms/includes/admin/options.php8102.0025.2824.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function NoActiveGF_Get_Options() in wp-content/plugins/noactive-for-gravityforms/includes/admin/options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/noactive-for-gravityforms/noactive-for-gravityforms.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/noactive-for-gravityforms/includes/admin/admin.php:22

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: "wpgear.xyz/noactive-for-gravityforms"
The official readme.txt might help

noactive-for-gravityforms/noactive-for-gravityforms.php 92% from 13 tests

The main PHP script in "No Active for GravityForms" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 206 characters long)

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 detected138 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63745124
CSS221014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.39MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner-1544x500.png395.65KB121.64KB▼ 69.26%