10% elements-hive-for-breakdance

Code Review | Elements Hive for Breakdance

WordPress plugin Elements Hive for Breakdance scored10%from 54 tests.

About plugin

  • Plugin page: elements-hive-for...
  • Plugin version: 1.3.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 24, 2022
  • Latest release: Oct 31, 2023
  • Number of updates: 56
  • Update frequency: every 6.4 days
  • Top authors: elementshive (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /4,796 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/breakdance/plugin.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.99ms] Passed 4 tests

Server-side resources used by Elements Hive for Breakdance
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.86 ▼31.29
Dashboard /wp-admin2.05 ▼1.266.17 ▼44.27
Posts /wp-admin/edit.php2.05 ▼1.314.80 ▼44.05
Add New Post /wp-admin/post-new.php2.05 ▼3.845.57 ▼100.36
Media Library /wp-admin/upload.php2.05 ▼1.185.18 ▼26.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Elements Hive for Breakdance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.351.52 ▼0.0740.24 ▲0.54
Dashboard /wp-admin2,192 ▲125.50 ▼0.1783.60 ▼4.0439.20 ▼1.85
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0136.09 ▼1.6432.62 ▼1.43
Add New Post /wp-admin/post-new.php1,532 ▲623.16 ▼0.54677.71 ▲89.1361.53 ▲10.10
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.07104.71 ▲8.4044.79 ▲3.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/breakdance/plugin.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elements-hive-for-breakdance/elements_hive_for_breakdance.php
  • 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\Backgrounds\\WebglKineticTypography\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/backgrounds/webgl_kinetic_typography/dependencies.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\MouseCursors\\MagneticMouseCursor\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/mouse_cursors/magnetic_mouse_cursor/styles.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\Backgrounds\\WebglKineticTypography\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/backgrounds/webgl_kinetic_typography/dependencies.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\Backgrounds\\WebglFluid\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/backgrounds/webgl_fluid/styles.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\Backgrounds\\WebglFluid\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/backgrounds/webgl_fluid/dependencies.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Breakdance\\ElementStudio\\registerElementForEditing() in wp-content/plugins/elements-hive-for-breakdance/elements/WebGL_Media_Hover_Distortion/element.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\MouseCursors\\InkMouseCursor\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/mouse_cursors/ink_mouse_cursor/styles.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ElementsHiveForBreakdance\\GooeyLink' not found in wp-content/plugins/elements-hive-for-breakdance/elements/Gooey_Menu_Link/element.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/control.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementsHiveForBreakdance\\Extensions\\MouseCursors\\InkMouseCursor\\add_filter() in wp-content/plugins/elements-hive-for-breakdance/extensions/mouse_cursors/ink_mouse_cursor/dependencies.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: extensions, creative, webgl, transition, animation...

elements-hive-for-breakdance/elements_hive_for_breakdance.php 77% from 13 tests

"Elements Hive for Breakdance" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("elements-hive-for-breakdance.php" instead of "elements_hive_for_breakdance.php")
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin66,231 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2627,7023,29859,266
PHP481,1547966,478
Markdown1700196
Twig11210184
CSS612086
JSON10021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.21
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods292
▷ Static methods19667.12%
▷ Public methods25386.64%
▷ Protected methods62.05%
▷ Private methods3311.30%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants11
▷ Global constants545.45%
▷ Class constants654.55%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/plugin/banner-772x250.png76.59KB26.04KB▼ 66.00%
extensions/backgrounds/webgl_kinetic_typography/assets/images/dithering_texture.png6.95KB4.90KB▼ 29.47%
extensions/backgrounds/webgl_fluid/assets/images/dithering_texture.png6.95KB4.90KB▼ 29.47%
assets/images/plugin/banner-icon.png93.18KB34.65KB▼ 62.82%
assets/images/plugin/banner-1544x500.png221.23KB73.86KB▼ 66.61%