78% easy-modules

Code Review | Easy Modules for Beaver Builder

WordPress plugin Easy Modules for Beaver Builder scored78%from 54 tests.

About plugin

  • Plugin page: easy-modules
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Sep 18, 2022
  • Number of updates: 16
  • Update frequency: every 9.8 days
  • Top authors: babuwpd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.12ms] Passed 4 tests

This is a short check of server-side resources used by Easy Modules for Beaver Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.30 ▼3.51
Dashboard /wp-admin3.32 ▲0.0251.02 ▼1.25
Posts /wp-admin/edit.php3.37 ▲0.0149.30 ▲1.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.14 ▼10.94
Media Library /wp-admin/upload.php3.24 ▲0.0133.13 ▼4.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Modules for Beaver Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.76 ▲0.001.89 ▼0.5346.80 ▲4.07
Dashboard /wp-admin2,206 ▲154.88 ▲0.0198.92 ▼18.6642.65 ▼1.13
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.0840.87 ▲2.8936.70 ▲0.77
Add New Post /wp-admin/post-new.php1,533 ▲523.34 ▲4.93691.41 ▲23.9764.62 ▲0.88
Media Library /wp-admin/upload.php1,391 ▼04.23 ▼0.0395.96 ▼4.9345.01 ▲0.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-modules/modules/em-team/includes/frontend.php
    • > /wp-content/plugins/easy-modules/modules/em-services/includes/frontend.php
  • 86× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'lh_row_justify' of non-object in wp-content/plugins/easy-modules/modules/em-gallery/includes/frontend.js.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderCSS' not found in wp-content/plugins/easy-modules/modules/em-services/includes/frontend.css.php:2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-modules/modules/em-cta/includes/frontend.php on line 10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-modules/modules/em-services/includes/frontend.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/easy-modules/modules/em-dual-heading/em-dual-heading.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-modules/classes/class-easy-module-loader.php:14
    • > PHP Notice
      Trying to get property 'lh_team_items' of non-object in wp-content/plugins/easy-modules/modules/em-team/includes/frontend.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderCSS' not found in wp-content/plugins/easy-modules/modules/em-flip-box/includes/frontend.css.php:2
    • > PHP Notice
      Trying to get property 'lh_autoplay_speed' of non-object in wp-content/plugins/easy-modules/modules/em-testimonial-quote/includes/frontend.js.php on line 8
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/easy-modules/modules/em-dual-heading/includes/frontend.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Image gallery) image not found
You can take inspiration from this readme.txt

easy-modules/easy-module.php 85% from 13 tests

This is the main PHP file of "Easy Modules for Beaver Builder" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-modules.php" instead of "easy-module.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected15,601 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
CSS152,247369,991
JavaScript66676352,838
PHP301622322,772

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.11
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected