84% doo-block-patterns

Code Review | DooBlockPatterns

WordPress plugin DooBlockPatterns scored84%from 54 tests.

About plugin

  • Plugin page: doo-block-patterns
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Oct 14, 2023
  • Number of updates: 45
  • Update frequency: every 7.2 days
  • Top authors: doowebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲3.01ms] Passed 4 tests

Analyzing server-side resources used by DooBlockPatterns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1357.67 ▲10.85
Dashboard /wp-admin3.44 ▲0.1453.42 ▼1.55
Posts /wp-admin/edit.php3.49 ▲0.1354.46 ▲2.56
Add New Post /wp-admin/post-new.php6.13 ▲0.25102.02 ▲1.27
Media Library /wp-admin/upload.php3.37 ▲0.1442.26 ▲9.77
Categories /wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern3.3636.18
Settings /wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern&page=doobp_options_page3.2426.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by DooBlockPatterns
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4114.74 ▲0.061.97 ▼0.2243.24 ▼0.66
Dashboard /wp-admin2,233 ▲535.64 ▼0.0183.07 ▼19.5637.61 ▼5.58
Posts /wp-admin/edit.php2,135 ▲322.02 ▲0.0440.91 ▲5.3738.04 ▲2.50
Add New Post /wp-admin/post-new.php1,564 ▲3518.34 ▼4.67639.07 ▼4.2375.43 ▲27.05
Media Library /wp-admin/upload.php1,435 ▲354.11 ▼0.09110.79 ▲4.1748.60 ▲1.80
Categories /wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern1,3062.1129.1829.94
Settings /wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern&page=doobp_options_page280.420.074.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern&page=doobp_options_page
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=doobp-pattern_cat&post_type=doobp-pattern&page=doobp_options_page - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

doo-block-patterns/doo-block-patterns.php 92% from 13 tests

The principal PHP file in "DooBlockPatterns" v. 1.2.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected532 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23589437
PO File1384095

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions22
▷ Named functions2090.91%
▷ Anonymous functions29.09%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin