83% productive-forms

Code Review | Productive Forms

WordPress plugin Productive Forms scored83%from 54 tests.

About plugin

  • Plugin page: productive-forms
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 65
  • Update frequency: every 5.6 days
  • Top authors: productiveminds (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,270 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼8.91ms] Passed 4 tests

Server-side resources used by Productive Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.79 ▼8.76
Dashboard /wp-admin3.54 ▲0.2447.19 ▼2.84
Posts /wp-admin/edit.php3.65 ▲0.2949.64 ▲4.92
Add New Post /wp-admin/post-new.php6.12 ▲0.2378.93 ▼19.91
Media Library /wp-admin/upload.php3.46 ▲0.2334.38 ▼4.11
Productive... /wp-admin/admin.php?page=productive_options_overview3.4033.61
Productive Forms /wp-admin/admin.php?page=productive_forms_options_submenu3.4329.79
Global Settings /wp-admin/admin.php?page=productive_global_options_submenu3.4332.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 95 new files
Database: 1 new table, 17 new options
New tables
wp_productive_forms
New WordPress options
widget_recent-posts
productive_global_section_misc_options
widget_productive_forms_widget_newsletter
productive_global_section_grid_options
productive_forms_current_db_version
theysaidso_admin_options
productive_forms_section_newsletter_options
productive_forms_section_contact_options
widget_recent-comments
productive_global_section_slider_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Productive Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8114.29 ▼0.062.33 ▲0.5539.67 ▼2.14
Dashboard /wp-admin2,222 ▲485.60 ▲0.0093.49 ▼6.3142.17 ▲0.62
Posts /wp-admin/edit.php2,127 ▲271.98 ▼0.0439.75 ▲2.0736.68 ▲1.99
Add New Post /wp-admin/post-new.php1,548 ▲2223.78 ▲0.36627.30 ▼56.4750.08 ▼9.92
Media Library /wp-admin/upload.php1,430 ▲304.19 ▼0.0195.76 ▼10.4341.77 ▼1.66
Productive... /wp-admin/admin.php?page=productive_options_overview1,1291.9630.2743.37
Productive Forms /wp-admin/admin.php?page=productive_forms_options_submenu1,1291.9926.6843.11
Global Settings /wp-admin/admin.php?page=productive_global_options_submenu1,4201.9327.8337.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 13 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_productive_forms_widget_contact
    • productive_global_section_misc_options
    • productive_global_section_sharing_options
    • theysaidso_admin_options
    • widget_productive_forms_widget_newsletter
    • productive_global_section_grid_options
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'PRODUCTIVE_FORMS_PLUGIN_PATHadmin/common/options/partials/part-section-integration.php' (include_path='.:/usr/share/php') in wp-content/plugins/productive-forms/admin/standard/options/partials/section-integration.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/productive-forms/admin/common/options/global/productiveminds-icons.php:463
    • > PHP Warning
      require_once(PRODUCTIVE_FORMS_PLUGIN_PATHincludes/common/db/db_install.php): failed to open stream: No such file or directory in wp-content/plugins/productive-forms/includes/standard/functions.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/productive-forms/libraries/recaptcha-master/src/ReCaptcha/RequestMethod/CurlPost.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/productive-forms/admin/common/options/functions-options.php:9
    • > PHP Warning
      require(PRODUCTIVE_FORMS_PLUGIN_PATHadmin/common/options/partials/part-section-integration.php): failed to open stream: No such file or directory in wp-content/plugins/productive-forms/admin/standard/options/partials/section-integration.php on line 34
    • > PHP Warning
      Use of undefined constant PRODUCTIVE_FORMS_PLUGIN_PATH - assumed 'PRODUCTIVE_FORMS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/productive-forms/includes/standard/functions.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/productive-forms/admin/common/options/global/productiveminds-social-share.php:137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/productive-forms/admin/common/options/global/global-settings-admin.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/productive-forms/libraries/recaptcha-master/src/ReCaptcha/RequestMethod/Post.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

productive-forms/productive-forms.php 92% from 13 tests

The primary PHP file in "Productive Forms" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin16,505 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP611,6292,02711,131
CSS5411084,842
JavaScript33343288
Markdown1330109
XML10090
JSON10039
YAML1206

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods68
▷ Static methods11.47%
▷ Public methods6595.59%
▷ Protected methods34.41%
▷ Private methods00.00%
Functions439
▷ Named functions43899.77%
▷ Anonymous functions10.23%
Constants108
▷ Global constants9688.89%
▷ Class constants1211.11%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/productivemedia/icons/close-jagged.png4.12KB2.46KB▼ 40.23%
public/images/productivemedia/icons/check-jagged.png3.41KB1.91KB▼ 43.99%
public/images/productivemedia/icons/check-circle.png5.45KB2.58KB▼ 52.71%
public/images/productivemedia/icons/check.png3.05KB1.70KB▼ 44.22%
public/images/productivemedia/icons/close.png3.46KB1.76KB▼ 49.15%