90% lock-reusable-blocks

Code Review | Lock Reusable Blocks

WordPress plugin Lock Reusable Blocks scored 90% from 54 tests.

About plugin

  • Plugin page: lock-reusable-blocks
  • Plugin version: 0.6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Mar 19, 2022
  • Latest release: Jun 29, 2022
  • Number of updates: 8
  • Update frequency: every 12.7 days
  • Top authors: Chaton666 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 3,399 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.22ms] Passed 4 tests

An overview of server-side resources used by Lock Reusable Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0253.65 ▲7.32
Dashboard /wp-admin3.32 ▲0.0246.99 ▼2.05
Posts /wp-admin/edit.php3.37 ▲0.0245.27 ▼1.02
Add New Post /wp-admin/post-new.php5.85 ▼0.0387.46 ▲0.96
Media Library /wp-admin/upload.php3.25 ▲0.0238.09 ▲2.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Lock Reusable Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.54 ▼0.842.34 ▲0.3955.04 ▲7.80
Dashboard /wp-admin2,209 ▲215.83 ▲0.7893.61 ▼20.0739.96 ▼2.63
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.0836.42 ▼1.5932.47 ▲0.19
Add New Post /wp-admin/post-new.php1,683 ▲14922.25 ▼0.93680.88 ▲7.8751.19 ▼0.84
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0598.45 ▼9.9144.51 ▼1.07

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_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: reusable, block, lock

lock-reusable-blocks/lock-reusable-blocks.php 92% from 13 tests

The main file in "Lock Reusable Blocks" v. 0.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.8")

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
Good job! No executable or dangerous file extensions detected16,504 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON40016,064
JavaScript23378262
PHP292479
CSS11435
Sass15035
PO File13321
Markdown1408

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected