84% e-shot-form-builder

Code Review | e-shot

WordPress plugin e-shot scored84%from 54 tests.

About plugin

  • Plugin page: e-shot-form-builder
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Nov 27, 2018
  • Latest release: Feb 11, 2022
  • Number of updates: 15
  • Update frequency: every 78.4 days
  • Top authors: forfront (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /739 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.15MB] [CPU: ▼8.58ms] Passed 4 tests

Server-side resources used by e-shot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.38 ▼0.09
Dashboard /wp-admin3.46 ▲0.1151.41 ▼20.10
Posts /wp-admin/edit.php3.57 ▲0.2249.65 ▼3.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.07 ▼10.19
Media Library /wp-admin/upload.php3.38 ▲0.1537.73 ▲3.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 5 new tables, 7 new options
New tables
wp_eshotformbuilder_forms
wp_eshotformbuilder_fields
wp_eshotformbuilder_control
wp_eshotformbuilder_preference_centre
wp_eshotformbuilder_subaccounts
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
eshotformbuilder_db_version
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for e-shot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14313.43 ▼0.947.56 ▲5.8439.69 ▼6.43
Dashboard /wp-admin2,219 ▲395.66 ▲0.0690.83 ▼5.5638.80 ▼3.26
Posts /wp-admin/edit.php2,121 ▲182.06 ▲0.0439.79 ▼0.0434.22 ▼0.92
Add New Post /wp-admin/post-new.php1,551 ▲2318.03 ▼5.13603.78 ▼91.7882.58 ▲29.13
Media Library /wp-admin/upload.php1,421 ▲244.15 ▼0.17107.85 ▲3.8141.43 ▼8.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/e-shot-form-builder/public/partials/eshotformbuilder-public-display.php
    • > /wp-content/plugins/e-shot-form-builder/admin/partials/eshotformbuilder-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: form builder, contact form, email marketing, newsletter, e-shot

e-shot-form-builder/eshotformbuilder.php 85% from 13 tests

The main PHP file in "e-shot" ver. 1.0.2 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: Please rename the main PHP file in this plugin to the plugin slug ("e-shot-form-builder.php" instead of "eshotformbuilder.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,233 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12328591896
JavaScript24938248
CSS2211389

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.29
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods2875.68%
▷ Protected methods00.00%
▷ Private methods924.32%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin