84% timed-content-for-beaver-builder

Code Review | Timed Content For Beaver Builder

WordPress plugin Timed Content For Beaver Builder scored 84% from 54 tests.

About plugin

  • Plugin page: timed-content-for...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 24
  • Update frequency: every 93.0 days
  • Top authors: brainstormworg (50%)Nikschavan (45.83%)patilvikasj (12.5%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 10,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Timed Content For Beaver Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0239.23 ▼12.30
Dashboard /wp-admin3.32 ▲0.0146.92 ▲0.51
Posts /wp-admin/edit.php3.37 ▲0.0146.20 ▼6.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.48 ▼11.27
Media Library /wp-admin/upload.php3.24 ▲0.0136.85 ▲2.21

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Timed Content For Beaver Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.18 ▼1.576.44 ▲4.4455.47 ▲13.72
Dashboard /wp-admin2,217 ▲295.79 ▼0.11104.87 ▼7.2340.48 ▼4.51
Posts /wp-admin/edit.php2,102 ▲132.02 ▼0.0234.76 ▼6.2736.34 ▼1.02
Add New Post /wp-admin/post-new.php1,544 ▲3023.13 ▲5.40687.41 ▼1.7358.22 ▼1.34
Media Library /wp-admin/upload.php1,402 ▲144.25 ▼0.1497.35 ▼12.4644.98 ▼1.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: module in wp-content/plugins/timed-content-for-beaver-builder/timed-content-module/includes/frontend.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/timed-content-for-beaver-builder/timed-content-module/timed-content-module.php:13
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_expired() on null in wp-content/plugins/timed-content-for-beaver-builder/timed-content-module/includes/frontend.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/timed-content-for-beaver-builder/timed-content-for-beaver-builder.php:18
    • > PHP Fatal error
      Uncaught Error: Call to a member function is_expired() on null in wp-content/plugins/timed-content-for-beaver-builder/timed-content-module/includes/frontend.css.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModel' not found in wp-content/plugins/timed-content-for-beaver-builder/class-timed-content-helper.php:31
    • > PHP Notice
      Undefined variable: module in wp-content/plugins/timed-content-for-beaver-builder/timed-content-module/includes/frontend.css.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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

timed-content-for-beaver-builder/timed-content-for-beaver-builder.php Passed 13 tests

Analyzing the main PHP file in "Timed Content For Beaver Builder" version 1.0.3
86 characters long description:
Timed Content For Beaver builder plugin allows users to hide content after given time.

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
There were no executable files found in this plugin626 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP666149574
JavaScript112044
XML1208

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity14.00
▷ Minimum class complexity4.00
▷ Maximum class complexity19.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods642.86%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin