84% elysio-form

Code Review | Elysio Form - Widget & Styles Contact Form 7 for Elementor

WordPress plugin Elysio Form - Widget & Styles Contact Form 7 for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: elysio-form
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 13, 2021
  • Latest release: Jan 29, 2021
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: horbenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.09ms] Passed 4 tests

Server-side resources used by Elysio Form - Widget & Styles Contact Form 7 for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.07 ▼1.17
Dashboard /wp-admin3.41 ▲0.1153.98 ▲6.86
Posts /wp-admin/edit.php3.46 ▲0.1149.68 ▲1.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.47 ▼19.47
Media Library /wp-admin/upload.php3.33 ▲0.1143.19 ▲7.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elysio Form - Widget & Styles Contact Form 7 for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.21 ▼1.471.70 ▲0.0441.14 ▼3.04
Dashboard /wp-admin2,224 ▲365.87 ▼0.02108.49 ▲0.5138.32 ▼3.65
Posts /wp-admin/edit.php2,106 ▲172.03 ▼0.1540.90 ▼0.0437.28 ▲2.51
Add New Post /wp-admin/post-new.php1,546 ▲923.01 ▼0.09592.84 ▼2.3452.21 ▼2.97
Media Library /wp-admin/upload.php1,406 ▲154.23 ▲0.04100.33 ▼1.3942.47 ▼1.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elysio-form/inc/admin-notice/admin-notice.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElysioForm\\add_action() in wp-content/plugins/elysio-form/plugin.php:115

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: widget, contact-form-7, contact, elementor addons, addons...

elysio-form/elysio-form.php Passed 13 tests

The entry point to "Elysio Form - Widget & Styles Contact Form 7 for Elementor" version 1.0.0 is a PHP file that has certain tags in its header comment area
108 characters long description:
Add ContactForm7 widget for Elementor. Also you can modify layout, design & styles. And even add animations.

Code Analysis Passed 3 tests

File types Passed 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
Good job! No executable or dangerous file extensions detected2,663 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP62063001,993
PO File2232250541
JavaScript2261475
CSS211154

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods27
▷ Static methods13.70%
▷ Public methods2074.07%
▷ Protected methods311.11%
▷ Private methods414.81%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/admin-notice/img/elysio-form-logo.png156.47KB64.68KB▼ 58.66%