90% reusable-blocks-list

Code Review | Reusable Blocks List

WordPress plugin Reusable Blocks List scored90%from 54 tests.

About plugin

  • Plugin page: reusable-blocks-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.9
  • WordPress version: 6.3.1
  • First release: Jan 12, 2021
  • Latest release: Jan 30, 2022
  • Number of updates: 5
  • Update frequency: every 76.6 days
  • Top authors: dmstevesmith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Reusable Blocks List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.22 ▼6.32
Dashboard /wp-admin3.31 ▲0.0043.36 ▼7.87
Posts /wp-admin/edit.php3.36 ▲0.0047.14 ▼3.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.90 ▼24.03
Media Library /wp-admin/upload.php3.23 ▲0.0037.89 ▲6.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Reusable Blocks List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.63 ▼0.681.62 ▼0.0839.49 ▼5.03
Dashboard /wp-admin2,218 ▲275.03 ▼0.87110.94 ▲9.1443.18 ▼3.89
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0140.16 ▲3.6736.76 ▲4.29
Add New Post /wp-admin/post-new.php1,543 ▲2323.36 ▲0.28631.56 ▼2.4357.48 ▲1.57
Media Library /wp-admin/upload.php1,394 ▲64.23 ▼0.0998.76 ▲1.6042.51 ▲0.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: reusable blocks menu, custom created blocks menu, reusable block list, user blocks menu

reusable-blocks-list/reusable-blocks-list.php Passed 13 tests

The main file in "Reusable Blocks List" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
This plugin is used to add a menu that lists all the reusable blocks in the admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin