78% scrolling-text-module-for-beaver-builder

Code Review | Scrolling Text Module for Beaver Builder

WordPress plugin Scrolling Text Module for Beaver Builder scored78%from 54 tests.

About plugin

  • Plugin page: scrolling-text-mo...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: May 9, 2022
  • Number of updates: 3
  • Update frequency: every 290.3 days
  • Top authors: madjax (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,139 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Scrolling Text Module for Beaver Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.86 ▲4.78
Dashboard /wp-admin3.31 ▲0.0145.79 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0047.63 ▼1.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.17 ▼5.28
Media Library /wp-admin/upload.php3.24 ▲0.0034.59 ▲1.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Scrolling Text Module for Beaver Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.131.73 ▼0.3244.95 ▲2.89
Dashboard /wp-admin2,209 ▲205.91 ▲0.9697.93 ▼22.2837.89 ▼5.11
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0738.99 ▼5.8233.82 ▼3.09
Add New Post /wp-admin/post-new.php1,537 ▲423.19 ▲0.11617.89 ▼65.5064.41 ▲2.87
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0796.87 ▼6.3942.62 ▼4.60

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scrolling-text-module-for-beaver-builder/tt-text-scroll-marquee-bb-module.php:11
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 16
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 26
    • > PHP Notice
      Trying to get property 'hscroll_text_field' of non-object in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 4
    • > PHP Notice
      Trying to get property 'hscroll_duration' of non-object in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 12
    • > PHP Notice
      Trying to get property 'hscroll_hover' of non-object in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 16
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/basic-hscroll.php:3
    • > PHP Warning
      Use of undefined constant TT_MODULE_SCROLL_URL - assumed 'TT_MODULE_SCROLL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/scrolling-text-module-for-beaver-builder/modules/basic-hscroll/includes/frontend.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: beaver builder, scrolling text, marquee

scrolling-text-module-for-beaver-builder/tt-text-scroll-marquee-bb-module.php 92% from 13 tests

The entry point to "Scrolling Text Module for Beaver Builder" version 2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("scrolling-text-module-for-beaver-builder.php" instead of "tt-text-scroll-marquee-bb-module.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
There were no executable files found in this plugin355 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16353215
PHP4138140

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected