84% crowdsignal-forms

Code Review | Crowdsignal Forms

WordPress plugin Crowdsignal Forms scored84%from 54 tests.

About plugin

  • Plugin page: crowdsignal-forms
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: May 3, 2023
  • Number of updates: 82
  • Update frequency: every 12.4 days
  • Top authors: cgastrell (82.93%)donncha (15.85%)jcheringer (3.66%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100,000+ active /65,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼0.73ms] Passed 4 tests

A check of server-side resources used by Crowdsignal Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4344.05 ▲2.83
Dashboard /wp-admin3.85 ▲0.5552.67 ▼3.43
Posts /wp-admin/edit.php3.90 ▲0.5453.58 ▲5.52
Add New Post /wp-admin/post-new.php6.56 ▲0.6892.96 ▼7.84
Media Library /wp-admin/upload.php3.77 ▲0.5441.23 ▲6.76
Crowdsignal /wp-admin/options-general.php?page=crowdsignal-settings3.6944.33

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
crowdsignal_api_key_secret
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Crowdsignal Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.39 ▲0.181.86 ▲0.1144.89 ▲5.65
Dashboard /wp-admin2,216 ▲425.59 ▼0.0184.45 ▼9.1239.24 ▼4.12
Posts /wp-admin/edit.php2,110 ▲72.03 ▲0.0438.93 ▲0.8734.17 ▼4.00
Add New Post /wp-admin/post-new.php6,201 ▲4,66126.38 ▲3.67953.00 ▲282.3683.07 ▲28.49
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.0697.02 ▼12.9945.39 ▼3.09
Crowdsignal /wp-admin/options-general.php?page=crowdsignal-settings8852.1828.1442.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • crowdsignal_api_key_secret

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Crowdsignal_Forms\\Auth\\Api_Auth_Provider_Interface' not found in wp-content/plugins/crowdsignal-forms/includes/auth/class-default-api-auth-provider.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/crowdsignal-forms/includes/admin/views/html-admin-settings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: polls, forms, surveys, block, gutenberg

crowdsignal-forms/crowdsignal-forms.php Passed 13 tests

The main PHP script in "Crowdsignal Forms" version 1.7.0 is automatically included on every request by WordPress
23 characters long description:
Crowdsignal Form Blocks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,565 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP568262,8083,680
CSS141377872
JavaScript70113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.03
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces10
Interfaces3
Traits0
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes13.03%
Methods270
▷ Static methods3412.59%
▷ Public methods21981.11%
▷ Protected methods114.07%
▷ Private methods4014.81%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants32
▷ Global constants39.38%
▷ Class constants2990.62%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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