90% reusable-blocks-admin-menu-option

Code Review | Reusable Blocks Admin Menu Option

WordPress plugin Reusable Blocks Admin Menu Option scored90%from 54 tests.

About plugin

  • Plugin page: reusable-blocks-a...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jun 4, 2020
  • Latest release: Oct 11, 2021
  • Number of updates: 11
  • Update frequency: every 44.9 days
  • Top authors: websitesbuiltforyou (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /3,934 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Reusable Blocks Admin Menu Option
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.21 ▼0.90
Dashboard /wp-admin3.32 ▼0.0250.88 ▼14.72
Posts /wp-admin/edit.php3.37 ▲0.0155.63 ▲7.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.38 ▼10.96
Media Library /wp-admin/upload.php3.24 ▲0.0137.87 ▲1.91

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/reusable-blocks-admin-menu-option/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Reusable Blocks Admin Menu Option
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.65 ▼0.571.96 ▲0.2045.16 ▲2.87
Dashboard /wp-admin2,233 ▲334.84 ▼0.10112.00 ▲0.1139.94 ▲0.02
Posts /wp-admin/edit.php2,115 ▲121.99 ▼0.0239.55 ▲3.9236.51 ▲3.31
Add New Post /wp-admin/post-new.php1,555 ▲2923.08 ▲5.55637.23 ▼54.1365.69 ▲9.73
Media Library /wp-admin/upload.php1,409 ▲94.27 ▲0.0299.91 ▼21.8647.12 ▼3.82

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: admin menu, reusable blocks

reusable-blocks-admin-menu-option/reusable-blocks-admin-menu-option.php Passed 13 tests

Analyzing the main PHP file in "Reusable Blocks Admin Menu Option" version 1.0.3
82 characters long description:
Add an entry to the admin menu for quick access to the Manage Reusable Blocks page

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
Everything looks great! No dangerous files found in this plugin60 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4227260

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected