90% clone-gravity-form-entry

Code Review | Clone Gravity Form Entry

WordPress plugin Clone Gravity Form Entry scored90%from 54 tests.

About plugin

  • Plugin page: clone-gravity-for...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Oct 5, 2023
  • Number of updates: 12
  • Update frequency: every 112.6 days
  • Top authors: techeshta (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Clone Gravity Form Entry
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.76 ▼1.79
Dashboard /wp-admin3.32 ▲0.0151.08 ▲2.67
Posts /wp-admin/edit.php3.37 ▲0.0152.42 ▼2.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.38 ▼11.74
Media Library /wp-admin/upload.php3.24 ▲0.0137.12 ▼3.15

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Clone Gravity Form Entry: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.72 ▲0.101.58 ▼0.1841.12 ▼5.31
Dashboard /wp-admin2,204 ▲275.55 ▼0.1284.29 ▼14.0243.41 ▼3.22
Posts /wp-admin/edit.php2,106 ▲62.01 ▼0.0234.10 ▼12.5940.85 ▲3.46
Add New Post /wp-admin/post-new.php1,535 ▲723.04 ▼0.06696.10 ▲1.7157.08 ▼9.12
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.05114.38 ▼1.8147.79 ▼0.44

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: clone entry, duplicate entry, gravity form addon, gravity form, one click clone entry...

clone-gravity-form-entry/clone-gravity-form-entry.php 92% from 13 tests

This is the main PHP file of "Clone Gravity Form Entry" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected97 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2313587
CSS10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin