79% blocksolid

Code Review | Blocksolid

WordPress plugin Blocksolid scored79%from 54 tests.

About plugin

  • Plugin page: blocksolid
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2021
  • Latest release: Sep 26, 2023
  • Number of updates: 47
  • Update frequency: every 19.6 days
  • Top authors: peripatus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,723 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.37MB] [CPU: ▼8.35ms] 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.84 ▲0.3836.91 ▼1.97
Dashboard /wp-admin3.69 ▲0.3447.32 ▼11.69
Posts /wp-admin/edit.php3.81 ▲0.4443.38 ▼4.95
Add New Post /wp-admin/post-new.php6.25 ▲0.3681.85 ▼14.77
Media Library /wp-admin/upload.php3.62 ▲0.3840.97 ▲7.40

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

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 /2,924 ▲17813.39 ▼1.208.20 ▲6.6540.42 ▲2.01
Dashboard /wp-admin2,219 ▲395.54 ▼0.1389.98 ▲4.9438.38 ▼4.87
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0333.21 ▼2.8233.81 ▲1.85
Add New Post /wp-admin/post-new.php1,730 ▲19522.00 ▲3.53651.41 ▼0.2037.88 ▼40.03
Media Library /wp-admin/upload.php1,421 ▲244.20 ▼0.0495.96 ▼4.3742.72 ▼0.99
Blocksolid 1 /wp-admin/blocksolid.php260.420.0713.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
7 plugin tags: wpbakery migration, elementor, visual composer migration, classic editor, gutenberg overlay...

blocksolid/blocksolid.php Passed 13 tests

The primary PHP file in "Blocksolid" version 2.0.4 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 plugin6,278 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript174101,2144,125
PHP125502871,415
CSS713533711
JSON11027

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.36
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%
Functions77
▷ Named functions6280.52%
▷ Anonymous functions1519.48%
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
media/blocksolid-170.png2.70KB2.56KB▼ 5.17%