84% romethemeform

Code Review | RomethemeForm For Elementor

WordPress plugin RomethemeForm For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: romethemeform
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2023
  • Latest release: Nov 22, 2023
  • Number of updates: 10
  • Update frequency: every 27.7 days
  • Top authors: dickoandrean (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /9,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.35ms] Passed 4 tests

An overview of server-side resources used by RomethemeForm For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.26 ▼0.21
Dashboard /wp-admin3.38 ▲0.0845.60 ▼3.84
Posts /wp-admin/edit.php3.50 ▲0.1447.66 ▼2.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0879.94 ▼15.07
Media Library /wp-admin/upload.php3.31 ▲0.0833.27 ▲0.56

Server storage [IO: ▲2.87MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RomethemeForm For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7114.09 ▼0.141.67 ▼0.1237.62 ▼7.50
Dashboard /wp-admin2,238 ▲585.60 ▼0.0795.66 ▲7.0883.60 ▲39.28
Posts /wp-admin/edit.php2,147 ▲471.98 ▼0.0340.76 ▲3.7736.99 ▼0.94
Add New Post /wp-admin/post-new.php1,571 ▲3623.31 ▼1.72698.18 ▲44.0661.13 ▲0.84
Media Library /wp-admin/upload.php1,443 ▲434.19 ▲0.0197.44 ▲1.4575.58 ▲33.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rtform-time.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/romethemeform/views/welcome.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rform-checkbox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rtform-email.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rtform-text-area.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rform-button-submit.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rtform-text.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rform-input-tel.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/romethemeform/modules/form/views/entries-view.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/romethemeform/widgets/rtform.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: form builder, form, extension, widget, addons...

romethemeform/rometheme-form.php 92% from 13 tests

The main PHP script in "RomethemeForm For Elementor" version 1.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("romethemeform.php" instead of "rometheme-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin34,232 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,5899322,121
PHP221,0012337,546
JavaScript121,2525234,563
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods184
▷ Static methods2815.22%
▷ Public methods15885.87%
▷ Protected methods2513.59%
▷ Private methods10.54%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.59MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/assets/img/flags.png68.68KB24.74KB▼ 63.98%
assets/images/rform.png5.74KB3.26KB▼ 43.15%
assets/images/rform20x20.png3.53KB0.85KB▼ 75.99%
assets/images/section2.png165.48KB47.03KB▼ 71.58%
assets/images/section3.png82.07KB28.59KB▼ 65.16%