68% official-makesbridge-web-form-builder

Code Review | Web Form Builder by Makesbridge

WordPress plugin Web Form Builder by Makesbridge scored68%from 54 tests.

About plugin

  • Plugin page: official-makesbri...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Sep 9, 2016
  • Number of updates: 20
  • Update frequency: every 4.4 days
  • Top authors: makesbridge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.75ms] Passed 4 tests

This is a short check of server-side resources used by Web Form Builder by Makesbridge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.16 ▼3.92
Dashboard /wp-admin3.37 ▲0.0746.60 ▼6.58
Posts /wp-admin/edit.php3.41 ▲0.0647.02 ▼3.40
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.21 ▼5.09
Media Library /wp-admin/upload.php3.30 ▲0.0735.69 ▼2.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Web Form Builder by Makesbridge
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17614.07 ▼0.281.76 ▼0.0443.76 ▼0.32
Dashboard /wp-admin2,306 ▲1175.91 ▼0.01108.50 ▼28.0195.92 ▲49.74
Posts /wp-admin/edit.php2,196 ▲1252.70 ▲0.6440.02 ▲2.8975.34 ▲41.71
Add New Post /wp-admin/post-new.php1,611 ▲9723.51 ▲6.00620.00 ▼75.0735.91 ▼28.92
Media Library /wp-admin/upload.php1,480 ▲955.25 ▲1.00103.40 ▼5.9337.78 ▼9.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php
    • > /wp-content/plugins/official-makesbridge-web-form-builder/inc/csv_generator.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/official-makesbridge-web-form-builder/inc/options-page-wrapper.php:62
    • > PHP Notice
      Undefined variable: isUser_registered in wp-content/plugins/official-makesbridge-web-form-builder/inc/options-page-wrapper.php on line 2
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php on line 2
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php on line 2
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/official-makesbridge-web-form-builder/wpmks-webforms.php:18
    • > PHP Notice
      Undefined variable: formid in wp-content/plugins/official-makesbridge-web-form-builder/inc/front-end.php on line 2
    • > PHP Notice
      Undefined index: userId in wp-content/plugins/official-makesbridge-web-form-builder/inc/csv_generator.php on line 11
    • > PHP Notice
      Undefined variable: counterValue in wp-content/plugins/official-makesbridge-web-form-builder/inc/options-page-wrapper.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
6 plugin tags: builder, shortcode, makesbridge, forms, api...

official-makesbridge-web-form-builder/wpmks-webforms.php 92% from 13 tests

The main PHP file in "Web Form Builder by Makesbridge" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("official-makesbridge-web-form-builder.php" instead of "wpmks-webforms.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Almost there! Just fix the following issues
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .app - FoxPro Application in Visual FoxPro
      • wp-content/plugins/official-makesbridge-web-form-builder/img/System Preferences.app
7,851 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42233903,562
CSS42921263,425
PHP53563530
HTML1958334

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.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/delete.png2.91KB0.36KB▼ 87.78%
img/closeicon.png2.86KB0.19KB▼ 93.51%
img/logo.png1.54KB0.92KB▼ 40.63%
img/next.png1.03KB0.18KB▼ 82.70%
img/check.png2.86KB0.24KB▼ 91.49%