89% extended-simple-history-for-beaver-builder

Code Review | Simple History Beaver Builder Add-On

WordPress plugin Simple History Beaver Builder Add-On scored89%from 54 tests.

About plugin

  • Plugin page: extended-simple-h...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: May 26, 2023
  • Number of updates: 14
  • Update frequency: every 60.8 days
  • Top authors: webdogs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.71ms] Passed 4 tests

A check of server-side resources used by Simple History Beaver Builder Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.58 ▼6.49
Dashboard /wp-admin3.37 ▲0.0750.49 ▼5.21
Posts /wp-admin/edit.php3.43 ▲0.0748.14 ▼3.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.61 ▼12.12
Media Library /wp-admin/upload.php3.30 ▲0.0736.68 ▼0.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple History Beaver Builder Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▲0.021.71 ▼0.0541.26 ▼5.54
Dashboard /wp-admin2,209 ▲215.91 ▲0.01105.44 ▼9.4539.47 ▼3.16
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0040.16 ▲3.2036.46 ▲2.34
Add New Post /wp-admin/post-new.php1,533 ▲1923.41 ▲5.72670.41 ▲24.2054.83 ▲7.63
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0496.54 ▼3.8445.02 ▲1.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
Attributes that require attention: You can take inspiration from this readme.txt

extended-simple-history-for-beaver-builder/extended-simple-history-beaver-builder.php 85% from 13 tests

The entry point to "Simple History Beaver Builder Add-On" version 1.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extended-simple-history-for-beaver-builder.php" instead of "extended-simple-history-beaver-builder.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin1,707 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP6182433900
JavaScript83662429
Sass1472172
CSS2357149
JSON10057

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity62.50
▷ Minimum class complexity6.00
▷ Maximum class complexity119.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1361.90%
▷ Public methods1571.43%
▷ Protected methods628.57%
▷ Private methods00.00%
Functions21
▷ Named functions419.05%
▷ Anonymous functions1780.95%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin