89% save-and-continue-link-recovery-for-gravity-forms

Code Review | Save and Continue Link Recovery for Gravity Forms

WordPress plugin Save and Continue Link Recovery for Gravity Forms scored89%from 54 tests.

About plugin

  • Plugin page: save-and-continue...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: Jun 26, 2018
  • Number of updates: 3
  • Update frequency: every 138.0 days
  • Top authors: lelandf (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /3,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Save and Continue Link Recovery for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.38 ▼5.04
Dashboard /wp-admin3.33 ▼0.0246.96 ▼8.78
Posts /wp-admin/edit.php3.38 ▲0.0248.07 ▼0.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.37 ▼20.79
Media Library /wp-admin/upload.php3.25 ▲0.0233.64 ▼0.70
Save and Continue Link Recovery /wp-admin/tools.php?page=save-and-continue-link-recovery3.2030.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Save and Continue Link Recovery for Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.34 ▼1.061.73 ▼0.4941.74 ▼7.66
Dashboard /wp-admin2,213 ▲255.86 ▲0.9799.62 ▼8.2036.89 ▼0.74
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0139.25 ▲1.0934.54 ▲0.10
Add New Post /wp-admin/post-new.php1,517 ▼1617.46 ▼5.71660.89 ▲0.1453.57 ▲1.61
Media Library /wp-admin/upload.php1,386 ▼24.24 ▲0.0195.56 ▼12.2043.43 ▼1.11
Save and Continue Link Recovery /wp-admin/tools.php?page=save-and-continue-link-recovery7812.0227.3030.90

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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:
  • License uri: Invalid URI ("LICENSE")
You can take inspiration from this readme.txt

save-and-continue-link-recovery-for-gravity-forms/save-and-continue-link-recovery-for-gravity-forms.php 92% from 13 tests

Analyzing the main PHP file in "Save and Continue Link Recovery for Gravity Forms" version 2.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin