84% formfacade

Code Review | FormFacade - Wordpress plugin for Google Forms

WordPress plugin FormFacade - Wordpress plugin for Google Forms scored84%from 54 tests.

About plugin

  • Plugin page: formfacade
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 21
  • Update frequency: every 70.0 days
  • Top authors: manidoraisamy (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /6,305 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.76ms] Passed 4 tests

Analyzing server-side resources used by FormFacade - Wordpress plugin for Google Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.22 ▼2.03
Dashboard /wp-admin3.31 ▼0.0341.47 ▼18.04
Posts /wp-admin/edit.php3.36 ▲0.0144.98 ▼2.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0175.10 ▼24.73
Media Library /wp-admin/upload.php3.24 ▲0.0134.20 ▲0.89

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FormFacade - Wordpress plugin for Google Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.182.17 ▲0.5740.12 ▼2.93
Dashboard /wp-admin2,206 ▲214.85 ▼0.03113.64 ▲8.1642.77 ▼0.48
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0539.85 ▼0.9135.07 ▼2.41
Add New Post /wp-admin/post-new.php1,533 ▲1423.04 ▼0.17673.85 ▲50.0751.24 ▼1.88
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.01101.10 ▼1.8340.71 ▼1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/formfacade/formfacade.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in formfacade/assets to your readme.txt
The official readme.txt is a good inspiration

formfacade/formfacade.php Passed 13 tests

The main PHP file in "FormFacade - Wordpress plugin for Google Forms" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Customize your Google Form to suit your wordpress site

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
There were no executable files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112733

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected