89% gf-disable-storing-entry

Code Review | Gravity Form Disable Storing Entry

WordPress plugin Gravity Form Disable Storing Entry scored89%from 54 tests.

About plugin

  • Plugin page: gf-disable-storin...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: sofyansitorus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Gravity Form Disable Storing Entry
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.62 ▲9.18
Dashboard /wp-admin3.31 ▼0.0346.84 ▼9.65
Posts /wp-admin/edit.php3.37 ▲0.0141.50 ▼8.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.83 ▼28.47
Media Library /wp-admin/upload.php3.24 ▲0.0136.25 ▼1.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Form Disable Storing Entry
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.131.85 ▲0.0940.55 ▼2.25
Dashboard /wp-admin2,195 ▲145.65 ▼0.0692.43 ▼6.9641.46 ▼6.25
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0036.25 ▼3.4034.96 ▲0.32
Add New Post /wp-admin/post-new.php1,526 ▼923.16 ▲5.08581.18 ▼27.6160.92 ▼24.40
Media Library /wp-admin/upload.php1,397 ▼64.24 ▼0.1499.64 ▼3.6244.78 ▲0.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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
2 plugin tags: gravity form, gravity form entry

gf-disable-storing-entry/gfdse.php 85% from 13 tests

The main PHP script in "Gravity Form Disable Storing Entry" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gf-disable-storing-entry.php" instead of "gfdse.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

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
Good job! No executable or dangerous file extensions detected42 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2134942

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin