90% disable-elements-for-wpbakery-page-builder

Code Review | Disable Elements for WPBakery Page Builder

WordPress plugin Disable Elements for WPBakery Page Builder scored90%from 54 tests.

About plugin

  • Plugin page: disable-elements-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2022
  • Latest release: Jun 26, 2023
  • Number of updates: 3
  • Update frequency: every 158.0 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,180 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.06ms] Passed 4 tests

An overview of server-side resources used by Disable Elements for WPBakery Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.37 ▼1.41
Dashboard /wp-admin3.34 ▲0.0346.75 ▲0.05
Posts /wp-admin/edit.php3.39 ▲0.0351.20 ▲4.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.13 ▼17.61
Media Library /wp-admin/upload.php3.26 ▲0.0337.09 ▲2.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Disable Elements for WPBakery Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.011.77 ▼0.1837.08 ▼6.90
Dashboard /wp-admin2,195 ▲185.63 ▲0.0183.36 ▼14.6143.54 ▼0.99
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0436.57 ▼0.6137.47 ▲2.03
Add New Post /wp-admin/post-new.php1,535 ▲618.11 ▼4.94612.30 ▼34.3481.00 ▲27.84
Media Library /wp-admin/upload.php1,397 ▼04.28 ▲0.1198.79 ▼0.8841.46 ▼2.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need your attention: Please take inspiration from this readme.txt

disable-elements-for-wpbakery-page-builder/disable-elements-for-wpbakery-page-builder.php Passed 13 tests

The main file in "Disable Elements for WPBakery Page Builder" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Adds a new page at WPBakery Page Builder > Disable Elements so you can disable elements not in use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23250160

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods12
▷ Static methods18.33%
▷ Public methods758.33%
▷ Protected methods00.00%
▷ Private methods541.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin