84% demomentsomtres-gravity-forms-improvements

Code Review | DeMomentSomTres Gravity Forms Improvements

WordPress plugin DeMomentSomTres Gravity Forms Improvements scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-g...
  • Plugin version: 201805021810...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.5
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: May 2, 2018
  • Number of updates: 10
  • Update frequency: every 70.9 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /995 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.41MB] [CPU: ▼5.34ms] Passed 4 tests

An overview of server-side resources used by DeMomentSomTres Gravity Forms Improvements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4340.29 ▼1.93
Dashboard /wp-admin3.76 ▲0.4152.78 ▼13.33
Posts /wp-admin/edit.php3.81 ▲0.4556.52 ▲7.43
Add New Post /wp-admin/post-new.php6.28 ▲0.3987.74 ▼11.10
Media Library /wp-admin/upload.php3.62 ▲0.3942.36 ▲5.00
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.6937.58

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for DeMomentSomTres Gravity Forms Improvements
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.22 ▼0.131.91 ▼0.0140.15 ▼4.43
Dashboard /wp-admin2,225 ▲485.65 ▲0.0688.70 ▼3.0643.32 ▼5.48
Posts /wp-admin/edit.php2,139 ▲392.07 ▼0.0436.68 ▼1.1141.19 ▲4.39
Add New Post /wp-admin/post-new.php1,560 ▲2618.25 ▼0.18655.41 ▼0.3765.75 ▼14.84
Media Library /wp-admin/upload.php1,441 ▲444.22 ▲0.0398.79 ▼4.1147.33 ▼0.41
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9712.0624.8930.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-gravity-forms-improvements/lib/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/demomentsomtres-gravity-forms-improvements/class-demomentsomtres-gravity-forms.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-gravity-forms-improvements/lib/class-tgm-plugin-activation.php:2109

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: gravity forms, forms

demomentsomtres-gravity-forms-improvements/demomentsomtres-gravity-forms-improvements.php 92% from 13 tests

The entry point to "DeMomentSomTres Gravity Forms Improvements" version 201805021810... is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "201805021810...")

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
Good job! No executable or dangerous file extensions detected6,886 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP45151,7111,984
Markdown123035
JavaScript10025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity35.60
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods119
▷ Static methods65.04%
▷ Public methods9680.67%
▷ Protected methods2319.33%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected