90% wp-block-revealer

Code Review | Block Revealer

WordPress plugin Block Revealer scored90%from 54 tests.

About plugin

  • Plugin page: wp-block-revealer
  • Plugin version: 1.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2020
  • Latest release: Dec 3, 2022
  • Number of updates: 72
  • Update frequency: every 14.4 days
  • Top authors: maxpertici (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,112 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.85ms] Passed 4 tests

An overview of server-side resources used by Block Revealer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.23 ▲0.43
Dashboard /wp-admin3.32 ▲0.0248.91 ▼2.04
Posts /wp-admin/edit.php3.37 ▲0.0249.07 ▼3.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.23 ▼17.92
Media Library /wp-admin/upload.php3.25 ▲0.0235.79 ▲0.41

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

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

Browser metrics Passed 4 tests

Block Revealer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.002.11 ▲0.3143.71 ▼2.03
Dashboard /wp-admin2,198 ▲215.63 ▼0.0390.43 ▲4.3343.51 ▲7.16
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0039.57 ▼2.4333.17 ▼5.04
Add New Post /wp-admin/post-new.php1,617 ▲9123.62 ▲0.54638.15 ▼33.1553.42 ▼7.05
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.02100.27 ▼7.2846.93 ▲2.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

wp-block-revealer/wp-block-revealer.php Passed 13 tests

"Block Revealer" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
Reveal blocks of Gutenberg Editor (Keyboard shortcut available : Ctrl + Alt + R).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin11,463 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON20011,000
Sass4730193
JavaScript36223137
PHP2436658
PO File17738
SVG10036
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin