84% formsuite

Code Review | Formsuite

WordPress plugin Formsuite scored84%from 54 tests.

About plugin

  • Plugin page: formsuite
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: Oct 20, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Formsuite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.28 ▼3.49
Dashboard /wp-admin3.32 ▲0.0246.36 ▼3.93
Posts /wp-admin/edit.php3.37 ▲0.0247.69 ▼1.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.18 ▼7.90
Media Library /wp-admin/upload.php3.25 ▲0.0241.44 ▲4.85
FormSuite /wp-admin/options-general.php?page=formsuite-login-form-customizer3.2539.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Formsuite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.28 ▼0.071.83 ▲0.0944.73 ▲0.53
Dashboard /wp-admin2,193 ▲165.62 ▲0.1085.40 ▼14.0940.51 ▼4.61
Posts /wp-admin/edit.php2,083 ▼172.02 ▼0.0136.31 ▼2.7837.48 ▼0.33
Add New Post /wp-admin/post-new.php1,531 ▲323.23 ▲0.16689.20 ▼5.1855.46 ▼5.35
Media Library /wp-admin/upload.php1,407 ▲44.08 ▼0.13104.14 ▼10.7344.24 ▼3.45
FormSuite /wp-admin/options-general.php?page=formsuite-login-form-customizer1,9735.36126.7070.83

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formsuite-login-form-customizer
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formsuite-login-form-customizer
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formsuite-login-form-customizer
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=formsuite-login-form-customizer
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 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
3 plugin tags: login, customizer, login form

formsuite/formsuite.php Passed 13 tests

The primary PHP file in "Formsuite" version 1.0.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
This Plugin Will Allows To Customize The Default Login Form Appearance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin331 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP310195299
JavaScript281525
CSS1237

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/no-image.png4.81KB4.87KB0.00%