84% blocktree

Code Review | Blocktree

WordPress plugin Blocktree scored84%from 54 tests.

About plugin

  • Plugin page: blocktree
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: May 26, 2022
  • Number of updates: 5
  • Update frequency: every 28.0 days
  • Top authors: aronstein (80%)liorkesos (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Blocktree
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.09 ▼1.08
Dashboard /wp-admin3.32 ▲0.0246.14 ▼2.60
Posts /wp-admin/edit.php3.37 ▲0.0147.05 ▲2.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.10 ▼4.67
Media Library /wp-admin/upload.php3.24 ▲0.0135.63 ▲0.53
Blocktree /wp-admin/options-general.php?page=blocktree3.2131.29

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

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

Browser metrics Passed 4 tests

Blocktree: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.25 ▼1.131.87 ▲0.0244.26 ▲1.36
Dashboard /wp-admin2,210 ▲224.83 ▼0.04108.17 ▼11.4736.23 ▼11.66
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0339.51 ▲2.1537.49 ▲0.14
Add New Post /wp-admin/post-new.php1,522 ▲223.10 ▼0.37695.07 ▼3.3662.44 ▲7.34
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.12103.00 ▼9.5946.87 ▼0.58
Blocktree /wp-admin/options-general.php?page=blocktree8042.0227.4126.39

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blocktree/plugin.php
    • > /wp-content/plugins/blocktree/blocktree.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
1 plugin tags: blocktree

blocktree/blocktree.php Passed 13 tests

The primary PHP file in "Blocktree" version 1.0.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Manage Blocktree for Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin245 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP343111154
Markdown121046
JavaScript2111745

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin