89% disable-block-completely

Code Review | Disable Block

WordPress plugin Disable Block scored89%from 54 tests.

About plugin

  • Plugin page: disable-block-com...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 9, 2021
  • Latest release: Dec 9, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼13.20ms] Passed 4 tests

This is a short check of server-side resources used by Disable Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.77 ▼1.11
Dashboard /wp-admin3.31 ▲0.0147.47 ▲0.47
Posts /wp-admin/edit.php3.36 ▲0.0142.40 ▼7.78
Add New Post /wp-admin/post-new.php3.39 ▼2.4955.16 ▼44.36
Media Library /wp-admin/upload.php3.24 ▲0.0145.81 ▲9.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3813.28 ▼1.271.79 ▼0.2944.96 ▼1.07
Dashboard /wp-admin2,209 ▲184.84 ▼1.04101.62 ▼0.1542.16 ▼1.71
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.47 ▼4.8631.44 ▼5.07
Add New Post /wp-admin/post-new.php3,094 ▲1,5617.81 ▼15.55179.58 ▼521.3571.09 ▲13.74
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.04108.95 ▼4.4445.42 ▼2.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: classic widgets, block editor, classic editor, disable gutenberg

disable-block-completely/disable-block.php 85% from 13 tests

Analyzing the main PHP file in "Disable Block" version 1.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-block-completely.php" instead of "disable-block.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133426

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin