72% messages-elementor-auto

Code Review | Messages for Elementor Auto

WordPress plugin Messages for Elementor Auto scored72%from 54 tests.

About plugin

  • Plugin page: messages-elemento...
  • Plugin version: 2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Jul 6, 2022
  • Number of updates: 17
  • Update frequency: every 14.4 days
  • Top authors: mestresdowp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,088 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.02MB] [CPU: ▼12.10ms] Passed 4 tests

A check of server-side resources used by Messages for Elementor Auto
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.90 ▲4.04
Dashboard /wp-admin3.33 ▼0.0146.71 ▼15.35
Posts /wp-admin/edit.php3.39 ▲0.0343.47 ▼11.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.14 ▼19.40
Media Library /wp-admin/upload.php3.26 ▲0.0334.45 ▼1.82
Messages Elementor /wp-admin/admin.php?page=memwp_messages_elementor3.2333.22

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Messages for Elementor Auto
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.26 ▼0.331.85 ▲0.1643.05 ▲1.58
Dashboard /wp-admin2,218 ▲415.60 ▲0.0984.54 ▼0.5442.20 ▲0.14
Posts /wp-admin/edit.php2,132 ▲322.01 ▼0.0136.28 ▼4.6534.84 ▼2.95
Add New Post /wp-admin/post-new.php1,709 ▲18022.23 ▼1.05655.76 ▼41.3955.95 ▼2.76
Media Library /wp-admin/upload.php1,432 ▲324.21 ▼0.1095.90 ▼6.7745.00 ▲0.31
Messages Elementor /wp-admin/admin.php?page=memwp_messages_elementor9742.0825.2540.10

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/messages-elementor-html-form.php+31
    include(html/documentacao.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/messages-elementor-html-form.php+31
    include(): Failed opening 'html/documentacao.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/messages-elementor-html-form.php+31
    include(html/plugins.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/messages-elementor-html-form.php+31
    include(): Failed opening 'html/plugins.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php+6
    simplexml_load_file(): ^
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Notice in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php+8
    Trying to get property 'artigo' of non-object
    • > GET request to /wp-admin/admin.php?page=memwp_messages_elementor
    • > Warning in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php+8
    Invalid argument supplied for foreach()

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-copyright.php
    • > /wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant MEMWP_PLUGIN_ADMIN_URL - assumed 'MEMWP_PLUGIN_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/messages-elementor-auto/admin/includes/messages-elementor-html-form.php on line 14
    • > PHP Notice
      Undefined variable: mwp_url_icons in wp-content/plugins/messages-elementor-auto/admin/includes/html/config.php on line 3
    • > PHP Warning
      simplexml_load_file(): https://www.mestresdowp.com.br/checkout/artigos.php:1: parser error : Start tag expected, '<' not found in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/messages-elementor-auto/admin/messages-elementor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/messages-elementor-auto/admin/includes/html/config.php:10
    • > PHP Warning
      simplexml_load_file(): ^ in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php on line 6
    • > PHP Notice
      Undefined variable: mwp_url_icons in wp-content/plugins/messages-elementor-auto/admin/includes/html/licensa.php on line 3
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php on line 8
    • > PHP Warning
      simplexml_load_file(): [{"ID":306678,"post_author":"2","post_date":"2023-09-30 10:00:00","post_date_gmt in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php on line 6
    • > PHP Notice
      Trying to get property 'artigo' of non-object in wp-content/plugins/messages-elementor-auto/admin/includes/html/mestres-wp-sidebar.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === messages-elementor-auto === )
You can look at the official readme.txt

messages-elementor-auto/messages-elementor.php 92% from 13 tests

The principal PHP file in "Messages for Elementor Auto" v. 2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("messages-elementor-auto.php" instead of "messages-elementor.php")

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
No dangerous file extensions were detected285 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP949285

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/mwp-ico-off.png1.33KB0.73KB▼ 45.19%
admin/assets/images/mwp-ico-on.png1.34KB0.69KB▼ 48.18%
admin/assets/images/mwp-logotipo.png4.97KB2.46KB▼ 50.49%
admin/assets/images/faviconmwp.png0.58KB0.62KB0.00%