94% fusion-extension-contact-form

Code Review | Fusion Page Builder : Extension - Contact Form

WordPress plugin Fusion Page Builder : Extension - Contact Form scored 94% from 54 tests.

About plugin

  • Plugin page: fusion-extension-...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 5.8.1
  • First release: Aug 4, 2016
  • Latest release: Dec 14, 2017
  • Number of updates: 20
  • Update frequency: every 25.2 days
  • Top authors: agencydominion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 6,601 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.64ms] Passed 4 tests

Server-side resources used by Fusion Page Builder : Extension - Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0136.44 ▲2.01
Dashboard /wp-admin3.07 ▲0.0247.09 ▲3.46
Posts /wp-admin/edit.php3.12 ▲0.0139.23 ▼11.92
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.84 ▼574.67
Media Library /wp-admin/upload.php3.01 ▲0.0134.93 ▲2.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Fusion Page Builder : Extension - Contact Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲6515.73 ▼0.159.28 ▲1.3849.93 ▼2.92
Dashboard /wp-admin2,973 ▲425.91 ▼0.02131.10 ▼7.86114.37 ▼5.25
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0064.09 ▲1.5694.15 ▲11.65
Add New Post /wp-admin/post-new.php3,634 ▲1,94320.51 ▲1.61410.03 ▲52.03102.38 ▼2.10
Media Library /wp-admin/upload.php1,807 ▼35.00 ▲0.00142.78 ▼19.95119.10 ▲3.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-contact-form/includes/extensions/contact-form.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-extension-contact-form/fusion-extension-contact-form.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

fusion-extension-contact-form/fusion-extension-contact-form.php Passed 13 tests

"Fusion Page Builder : Extension - Contact Form" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Contact Form Extension Package for Fusion.

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
No dangerous file extensions were detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected