89% blocksolid

Code Review | Blocksolid

WordPress plugin Blocksolid scored 89% from 54 tests.

About plugin

  • Plugin page: blocksolid
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 5.8.1
  • First release: Mar 26, 2021
  • Latest release: Sep 20, 2021
  • Number of updates: 30
  • Update frequency: every 6.2 days
  • Top authors: peripatus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 574 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Blocksolid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.09 ▲0.2534.51 ▲2.32
Dashboard /wp-admin3.33 ▲0.2746.64 ▲2.64
Posts /wp-admin/edit.php3.44 ▲0.3347.05 ▲3.82
Add New Post /wp-admin/post-new.php5.69 ▲0.2590.16 ▼553.49
Media Library /wp-admin/upload.php3.27 ▲0.2733.49 ▲1.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Blocksolid
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.03 ▲0.458.78 ▼0.0447.79 ▼9.35
Dashboard /wp-admin3,002 ▲716.03 ▲0.01139.73 ▼1.06126.14 ▲18.03
Posts /wp-admin/edit.php2,768 ▲292.72 ▼0.0063.46 ▼4.03109.61 ▲15.84
Add New Post /wp-admin/post-new.php1,636 ▲13620.97 ▲2.45264.32 ▼108.63101.31 ▼8.68
Media Library /wp-admin/upload.php1,836 ▲265.05 ▲0.03145.03 ▼0.47135.23 ▲16.23
Blocksolid 1 /wp-admin/blocksolid.php260.900.0810.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blocksolid/blocksolid-core.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/blocksolid/blocksolid.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/blocksolid.php
    • > Network (severe)
    wp-admin/blocksolid.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: gutenberg, editor, visual composer, wp bakery, divi...

blocksolid/blocksolid.php Passed 13 tests

The primary PHP file in "Blocksolid" version 1.1.6 is used by WordPress to initiate all plugin functionality
52 characters long description:
Restyle the block editor and extend the core blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,183 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102574742,799
PHP6364106894
CSS5829490

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.38
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%
Functions48
▷ Named functions4695.83%
▷ Anonymous functions24.17%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/blocksolid-425.png3.04KB2.85KB▼ 6.08%