90% blocks-by-weaver

Code Review | Designer Blocks for Block Editor by Weaver

WordPress plugin Designer Blocks for Block Editor by Weaver scored90%from 54 tests.

About plugin

  • Plugin page: blocks-by-weaver
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0
  • WordPress version: 6.3.1
  • First release: Jun 17, 2018
  • Latest release: Dec 9, 2018
  • Number of updates: 5
  • Update frequency: every 39.2 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /6,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.26MB] [CPU: ▼11.31ms] Passed 4 tests

A check of server-side resources used by Designer Blocks for Block Editor by Weaver
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.24 ▲9.44
Dashboard /wp-admin3.31 ▲0.0151.70 ▲4.89
Posts /wp-admin/edit.php3.37 ▲0.0145.27 ▼5.51
Add New Post /wp-admin/post-new.php4.81 ▼1.0855.11 ▼45.87
Media Library /wp-admin/upload.php3.24 ▲0.0139.30 ▲1.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Designer Blocks for Block Editor by Weaver
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.39 ▲0.011.69 ▲0.0641.88 ▼0.35
Dashboard /wp-admin2,198 ▲215.63 ▲0.1194.31 ▼3.2741.62 ▼2.36
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0834.32 ▼2.6536.43 ▲1.18
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.90 ▲4.76869.27 ▲218.2759.07 ▲2.73
Media Library /wp-admin/upload.php1,391 ▼64.23 ▲0.0096.75 ▼9.6746.36 ▼2.21

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: parallax, block images, web design, blocks, gutenberg...

blocks-by-weaver/plugin.php 92% from 13 tests

This is the main PHP file of "Designer Blocks for Block Editor by Weaver" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("blocks-by-weaver.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,598 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript123471181,860
Sass51030688
PHP2134646
CSS2004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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