78% fd-beaver-charts

Code Review | Beaver Charts - Beaver Builder Chart Module

WordPress plugin Beaver Charts - Beaver Builder Chart Module scored78%from 54 tests.

About plugin

  • Plugin page: fd-beaver-charts
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 11, 2018
  • Latest release: Aug 14, 2021
  • Number of updates: 9
  • Update frequency: every 115.4 days
  • Top authors: flickdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Beaver Charts - Beaver Builder Chart Module
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.43 ▼4.32
Dashboard /wp-admin3.32 ▼0.0245.86 ▼21.96
Posts /wp-admin/edit.php3.37 ▲0.0145.36 ▼2.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.52 ▼16.36
Media Library /wp-admin/upload.php3.25 ▲0.0135.90 ▲1.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Beaver Charts - Beaver Builder Chart Module
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.68 ▼0.9110.19 ▲7.9636.75 ▼8.90
Dashboard /wp-admin2,222 ▲344.84 ▼0.9995.62 ▼26.1839.34 ▼0.22
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0434.51 ▼3.1135.03 ▲2.09
Add New Post /wp-admin/post-new.php1,550 ▲3123.49 ▲0.16674.09 ▼20.4651.56 ▼7.84
Media Library /wp-admin/upload.php1,404 ▲164.28 ▲0.1097.11 ▼14.3443.43 ▼3.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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)
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
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php
    • > /wp-content/plugins/fd-beaver-charts/module/pie-chart/includes/frontend.php
    • > /wp-content/plugins/fd-beaver-charts/module/pie-chart/includes/frontend.css.php
    • > /wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.php
    • > /wp-content/plugins/fd-beaver-charts/module/pie-chart/includes/frontend.js.php
  • 80× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'tooltip_title_color' of non-object in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 187
    • > PHP Notice
      Trying to get property 'tooltip_style' of non-object in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 179
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 34
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/fd-beaver-charts/module/pie-chart/includes/frontend.php on line 9
    • > PHP Notice
      Trying to get property 'xaxis_line_position' of non-object in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 71
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/fd-beaver-charts/module/pie-chart/includes/frontend.css.php on line 14
    • > PHP Notice
      Trying to get property 'yaxis_beginAtZero' of non-object in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 145
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 183
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 123
    • > PHP Notice
      Trying to get property 'yaxis_callback_position' of non-object in wp-content/plugins/fd-beaver-charts/module/bar-chart/includes/frontend.js.php on line 151

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 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #4 (Bar Chart (Stack Type)), #5 (Line Chart)
You can look at the official readme.txt

fd-beaver-charts/fd-beaver-charts.php Passed 13 tests

The main PHP script in "Beaver Charts - Beaver Builder Chart Module" version 1.2.3 is automatically included on every request by WordPress
104 characters long description:
Allow user to manipulate data via different chart presentations on your site with beaver builder add-on.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin531 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP101661524
JavaScript3097

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods360.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin