90% krautpress-patterns-block

Code Review | Patterns block

WordPress plugin Patterns block scored90%from 54 tests.

About plugin

  • Plugin page: krautpress-patter...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Dec 16, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: FlorianBrinkmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Patterns block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.19 ▲2.18
Dashboard /wp-admin3.31 ▲0.0149.06 ▼7.30
Posts /wp-admin/edit.php3.36 ▲0.0045.76 ▼2.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.77 ▼12.54
Media Library /wp-admin/upload.php3.23 ▲0.0033.84 ▼0.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Patterns block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.001.95 ▲0.2541.72 ▲2.59
Dashboard /wp-admin2,192 ▲155.64 ▼0.0294.70 ▲3.1141.93 ▼0.60
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0332.68 ▼3.7432.48 ▼4.65
Add New Post /wp-admin/post-new.php6,199 ▲4,67318.96 ▼3.86947.23 ▲282.7455.44 ▲6.15
Media Library /wp-admin/upload.php1,403 ▲124.21 ▼0.0495.77 ▼3.1443.34 ▲0.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

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
There were not plugin tags detected

krautpress-patterns-block/krautpress-patterns-block.php Passed 13 tests

Analyzing the main PHP file in "Patterns block" version 1.0.0
47 characters long description:
A block for faster inserting of block patterns.

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 detected115 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2164171
CSS17043
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Namespaces1
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin