90% block-control

Code Review | Block Control

WordPress plugin Block Control scored90%from 54 tests.

About plugin

  • Plugin page: block-control
  • Plugin version: 1.1.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: Nov 10, 2023
  • Number of updates: 33
  • Update frequency: every 46.6 days
  • Top authors: epiphyt (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,551 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.31ms] Passed 4 tests

This is a short check of server-side resources used by Block Control
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.11 ▼0.76
Dashboard /wp-admin3.48 ▲0.1346.10 ▼13.81
Posts /wp-admin/edit.php3.53 ▲0.1740.97 ▼3.30
Add New Post /wp-admin/post-new.php6.18 ▲0.3082.84 ▼15.35
Media Library /wp-admin/upload.php3.40 ▲0.1732.31 ▲0.61

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Block Control: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.07 ▼0.281.91 ▼0.2344.57 ▲0.84
Dashboard /wp-admin2,198 ▲235.60 ▼0.0084.15 ▼24.3637.73 ▼5.46
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0234.23 ▼1.7229.84 ▼5.70
Add New Post /wp-admin/post-new.php1,691 ▲16522.47 ▼0.44675.49 ▲2.1259.36 ▼4.61
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.03100.74 ▲0.8441.20 ▲0.60

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: conditional, block, gutenberg

block-control/block-control.php 92% from 13 tests

The principal PHP file in "Block Control" v. 1.1.11 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,180 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP42341,0361,109
Markdown239069
CSS2101
JavaScript1001

PHP code Passed 2 tests

Analyzing 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.92
Average class complexity121.00
▷ Minimum class complexity103.00
▷ Maximum class complexity139.00
Average method complexity5.36
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1018.18%
▷ Public methods5294.55%
▷ Protected methods23.64%
▷ Private methods11.82%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin