79% mb-elementor-integrator

Code Review | Meta Box - Elementor Integrator

WordPress plugin Meta Box - Elementor Integrator scored79%from 54 tests.

About plugin

  • Plugin page: mb-elementor-inte...
  • Plugin version: 2.1.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2018
  • Latest release: Jul 18, 2023
  • Number of updates: 38
  • Update frequency: every 46.6 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /35,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Meta Box - Elementor Integrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.95 ▼1.11
Dashboard /wp-admin3.31 ▲0.0145.44 ▼4.85
Posts /wp-admin/edit.php3.36 ▲0.0046.28 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.68 ▼9.33
Media Library /wp-admin/upload.php3.23 ▲0.0037.01 ▲2.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Meta Box - Elementor Integrator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.19 ▼1.391.95 ▲0.3138.81 ▼2.13
Dashboard /wp-admin2,206 ▲185.89 ▲1.00108.04 ▲2.2141.87 ▼3.90
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0338.42 ▼0.1134.82 ▲1.97
Add New Post /wp-admin/post-new.php1,547 ▲518.37 ▲0.06578.42 ▼36.7886.20 ▲30.18
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0397.39 ▼0.4342.37 ▼1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mb-elementor-integrator/src/Templates/display_field-url.php
  • 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/mb-elementor-integrator/src/Templates/display_field-url.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mb-elementor-integrator/src/Widgets/MBGroup.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/mb-elementor-integrator/src/Templates/display_field-image.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\ThemeBuilder\\Conditions\\Condition_Base' not found in wp-content/plugins/mb-elementor-integrator/src/ThemeBuilder/Conditions/MBField.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/mb-elementor-integrator/src/Tags/Archive/Text.php:9
    • > PHP Fatal error
      Trait 'MBEI\\Traits\\Location' not found in wp-content/plugins/mb-elementor-integrator/src/Widgets/GroupLocation.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\ThemeBuilder\\Conditions\\Condition_Base' not found in wp-content/plugins/mb-elementor-integrator/src/ThemeBuilder/Conditions/MBFields.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\ThemeBuilder\\Documents\\Single' not found in wp-content/plugins/mb-elementor-integrator/src/ThemeBuilder/Documents/Group.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/mb-elementor-integrator/src/Templates/display_field-user.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/mb-elementor-integrator/src/Tags/Settings/Text.php:9

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: dynamic tags, custom meta box, elementor, custom fields, custom meta boxes...

mb-elementor-integrator/mb-elementor-integrator.php Passed 13 tests

The entry point to "Meta Box - Elementor Integrator" version 2.1.10 is a PHP file that has certain tags in its header comment area
47 characters long description:
Integrates Meta Box and Elementor Page Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,500 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP445624932,345
SVG100150
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.28
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces11
Interfaces0
Traits9
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods177
▷ Static methods3519.77%
▷ Public methods14079.10%
▷ Protected methods105.65%
▷ Private methods2715.25%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin