89% formentor-elementor-form-plus

Code Review | Formentor - Elementor Form Plus

WordPress plugin Formentor - Elementor Form Plus scored 89% from 54 tests.

About plugin

  • Plugin page: formentor-element...
  • Plugin version: 1...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Oct 21, 2018
  • Number of updates: 9
  • Update frequency: every 6.4 days
  • Top authors: avitrop (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 13,761 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▲80.36ms] Passed 4 tests

A check of server-side resources used by Formentor - Elementor Form Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.37 ▲1.02
Dashboard /wp-admin3.49 ▲0.19153.40 ▲104.85
Posts /wp-admin/edit.php3.54 ▲0.19163.50 ▲117.27
Add New Post /wp-admin/post-new.php6.01 ▲0.12196.15 ▲98.31
Media Library /wp-admin/upload.php3.35 ▲0.12167.03 ▲130.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Formentor - Elementor Form Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲16713.64 ▼0.655.72 ▲3.8737.72 ▼5.30
Dashboard /wp-admin2,222 ▲345.84 ▲0.8098.72 ▼3.1938.62 ▼8.66
Posts /wp-admin/edit.php2,105 ▲191.99 ▼0.0433.01 ▼2.0033.91 ▼0.04
Add New Post /wp-admin/post-new.php1,527 ▲817.69 ▼5.47663.30 ▼14.5455.49 ▼1.01
Media Library /wp-admin/upload.php1,398 ▲104.20 ▲0.08100.05 ▼1.9644.01 ▼1.77

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === formentor-elementor-form-plus === )
You can look at the official readme.txt

formentor-elementor-form-plus/google_api_modol.php 77% from 13 tests

The primary PHP file in "Formentor - Elementor Form Plus" version 1... is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("formentor-elementor-form-plus.php" instead of "google_api_modol.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")

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
There were no executable files found in this plugin2,187 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5255991,469
JavaScript27632275
CSS2200228
PO File190112215

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods3060.00%
▷ Protected methods1020.00%
▷ Private methods1020.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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