90% c7-form-builder

Code Review | C7 Form Builder

WordPress plugin C7 Form Builder scored90%from 54 tests.

About plugin

  • Plugin page: c7-form-builder
  • Plugin version: 1.0.0-beta.2...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Sep 8, 2015
  • Number of updates: 3
  • Update frequency: every 59.7 days
  • Top authors: chetanchauhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,231 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.47ms] Passed 4 tests

Analyzing server-side resources used by C7 Form Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.56 ▼5.73
Dashboard /wp-admin3.39 ▲0.0945.04 ▼2.28
Posts /wp-admin/edit.php3.50 ▲0.1540.74 ▼3.36
Add New Post /wp-admin/post-new.php6.01 ▲0.1378.21 ▼14.50
Media Library /wp-admin/upload.php3.31 ▲0.0932.90 ▼1.70

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

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

Browser metrics Passed 4 tests

C7 Form Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.311.57 ▼0.2041.93 ▲3.33
Dashboard /wp-admin2,198 ▲215.63 ▲0.0783.37 ▼5.9737.93 ▼1.40
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0335.41 ▲1.1630.50 ▼5.21
Add New Post /wp-admin/post-new.php1,528 ▲223.18 ▲0.13675.24 ▼75.8153.03 ▼2.36
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0894.19 ▼11.1043.25 ▼0.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: form creator, custom fields, repeatable, form, meta boxes...

c7-form-builder/c7-form-builder.php 92% from 13 tests

This is the main PHP file of "C7 Form Builder" version 1.0.0-beta.2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0.0-beta.2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,531 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP476703,1121,852
JavaScript4126264490
CSS24011176
SVG10013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes44
▷ Abstract classes920.45%
▷ Concrete classes3579.55%
▷ Final classes12.86%
Methods187
▷ Static methods73.74%
▷ Public methods11762.57%
▷ Protected methods6836.36%
▷ Private methods21.07%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin