77% lemon-hive-modules-for-beaver-builder

Code Review | Lemon Hive Modules

WordPress plugin Lemon Hive Modules scored 77% from 54 tests.

About plugin

  • Plugin page: lemon-hive-module...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Jan 4, 2022
  • Latest release: Apr 18, 2022
  • Number of updates: 9
  • Update frequency: every 11.6 days
  • Top authors: lemonhive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 821 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.00MB] [CPU: ▼5.52ms] Passed 4 tests

Server-side resources used by Lemon Hive Modules
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.43 ▼5.89
Dashboard /wp-admin3.31 ▲0.0146.71 ▲0.06
Posts /wp-admin/edit.php3.36 ▲0.0048.97 ▼11.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.81 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0035.41 ▲1.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Lemon Hive Modules
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.184.83 ▲3.1440.93 ▼1.78
Dashboard /wp-admin2,206 ▲205.85 ▲0.92104.50 ▼16.3938.94 ▼7.83
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0840.90 ▼2.9334.91 ▼3.60
Add New Post /wp-admin/post-new.php1,514 ▼017.76 ▲0.09680.97 ▲38.0066.98 ▲11.11
Media Library /wp-admin/upload.php1,379 ▼124.17 ▼0.0596.67 ▼4.3042.22 ▼1.62

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-team/includes/frontend.php
    • > /wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-hero-section/includes/frontend.js.php
    • > /wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-services/includes/frontend.php
  • 129× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-hero-section/includes/frontend.js.php on line 7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-recent-post/includes/frontend.js.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-testimonial-quote/lh-testimonial-quote.php:9
    • > PHP Notice
      Trying to get property 'lh_arrows' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-hero-section/includes/frontend.js.php on line 4
    • > PHP Notice
      Trying to get property 'lh_cta_link' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-cta/includes/frontend.php on line 10
    • > PHP Notice
      Trying to get property 'lh_slide_to_scroll' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-testimonial-quote/includes/frontend.js.php on line 3
    • > PHP Notice
      Trying to get property 'lh_dots' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-recent-post/includes/frontend.js.php on line 4
    • > PHP Notice
      Trying to get property 'lh_dots' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-hero-section/includes/frontend.js.php on line 3
    • > PHP Notice
      Trying to get property 'lh_arrows' of non-object in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-recent-post/includes/frontend.js.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lemon-hive-modules-for-beaver-builder/modules/lh-dual-heading/includes/frontend.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

lemon-hive-modules-for-beaver-builder/lemonhive-modules.php 77% from 13 tests

Analyzing the main PHP file in "Lemon Hive Modules" version 1.0.1
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lemon-hive-modules-for-beaver-builder.php" instead of "lemonhive-modules.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 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 detected15,866 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
CSS162,2973610,057
PHP372172993,669
JavaScript55294932,105
SVG100035

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.09
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods14
▷ Static methods428.57%
▷ Public methods14100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected