90% hide-block

Code Review | Hide Block

WordPress plugin Hide Block scored90%from 54 tests.

About plugin

  • Plugin page: hide-block
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2021
  • Latest release: Jun 19, 2023
  • Number of updates: 8
  • Update frequency: every 94.5 days
  • Top authors: Benjamin_Zekavica (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /4,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.27ms] Passed 4 tests

A check of server-side resources used by Hide Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.43 ▲5.14
Dashboard /wp-admin3.32 ▼0.0344.78 ▼14.48
Posts /wp-admin/edit.php3.37 ▲0.0144.33 ▼2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.57 ▼11.41
Media Library /wp-admin/upload.php3.24 ▲0.0133.52 ▼1.13

Server storage [IO: ▲1.44MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.14 ▼0.211.73 ▼0.0242.67 ▲0.97
Dashboard /wp-admin2,200 ▲205.60 ▼0.0187.28 ▲2.0438.92 ▼0.51
Posts /wp-admin/edit.php2,102 ▲22.00 ▲0.0233.53 ▼2.2434.72 ▼3.20
Add New Post /wp-admin/post-new.php1,687 ▲16122.25 ▼0.74639.56 ▼43.6348.71 ▼11.85
Media Library /wp-admin/upload.php1,396 ▼44.19 ▼0.0194.31 ▼23.4541.15 ▼6.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: hide block, blocks, gutenberg toolbar hide block, gutenberg, gutenberg hide...

hide-block/hide-block.php Passed 13 tests

The principal PHP file in "Hide Block" v. 1.4.0 is loaded by WordPress automatically on each request
39 characters long description:
Gutenberg Toolkit - Hide Backend Blocks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected42,305 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON20042,048
PO File32427108
JavaScript215287
PHP3194041
Markdown113021

PHP code Passed 2 tests

An short overview of 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.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin