89% ecomail-elementor-form-integration

Code Review | Integrate Ecomail and Elementor Forms

WordPress plugin Integrate Ecomail and Elementor Forms scored89%from 54 tests.

About plugin

  • Plugin page: ecomail-elementor...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 7, 2023
  • Latest release: Jul 13, 2023
  • Number of updates: 16
  • Update frequency: every 2.3 days
  • Top authors: webypolopate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /256 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.36ms] Passed 4 tests

Analyzing server-side resources used by Integrate Ecomail and Elementor Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.66 ▼3.75
Dashboard /wp-admin3.31 ▲0.0150.23 ▼2.25
Posts /wp-admin/edit.php3.36 ▲0.0050.65 ▼3.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.33 ▼7.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.66 ▲4.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Integrate Ecomail and Elementor Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.141.89 ▲0.1043.44 ▼2.20
Dashboard /wp-admin2,189 ▲215.52 ▼0.0984.41 ▼10.2038.34 ▼7.27
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0038.70 ▼0.6333.50 ▼3.74
Add New Post /wp-admin/post-new.php1,534 ▲818.32 ▼4.82661.14 ▲6.7775.25 ▲17.76
Media Library /wp-admin/upload.php1,394 ▼94.20 ▲0.0097.72 ▼5.9044.90 ▼1.16

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

ecomail-elementor-form-integration/integrate-ecomail-elementor.php 85% from 13 tests

"Integrate Ecomail and Elementor Forms" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("ecomail-elementor-form-integration.php" instead of "integrate-ecomail-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin225 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34789197
Markdown113028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ 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
PNG images were not found in this plugin