84% blocksolid-gather

Code Review | Blocksolid Gather

WordPress plugin Blocksolid Gather scored84%from 54 tests.

About plugin

  • Plugin page: blocksolid-gather
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Jan 10, 2022
  • Latest release: Oct 24, 2023
  • Number of updates: 27
  • Update frequency: every 24.2 days
  • Top authors: peripatus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.11ms] Passed 4 tests

Analyzing server-side resources used by Blocksolid Gather
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.54 ▲3.63
Dashboard /wp-admin3.45 ▲0.1149.32 ▼12.99
Posts /wp-admin/edit.php3.50 ▲0.1546.57 ▲0.77
Add New Post /wp-admin/post-new.php5.99 ▲0.1182.12 ▼5.43
Media Library /wp-admin/upload.php3.37 ▲0.1536.01 ▲1.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Blocksolid Gather
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲5814.37 ▲0.211.67 ▲0.0738.61 ▲0.82
Dashboard /wp-admin2,194 ▲175.66 ▲0.0794.71 ▲9.9841.07 ▼3.09
Posts /wp-admin/edit.php2,102 ▲51.94 ▼0.0134.30 ▼2.8532.15 ▼4.44
Add New Post /wp-admin/post-new.php6,433 ▲4,90527.11 ▲4.07948.02 ▲256.7375.31 ▲5.61
Media Library /wp-admin/upload.php1,402 ▲24.16 ▼0.0995.17 ▼7.4443.31 ▼1.32

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocksolid-gather/blocksolid-gather.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

blocksolid-gather/blocksolid-gather.php Passed 13 tests

"Blocksolid Gather" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Creates a Gutenberg block and shortcode that pulls in related posts and media via specified parameters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,099 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2289761,003
JavaScript11417910
CSS2350186

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
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
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/no-image.png12.00KB12.51KB0.00%
media/default-placeholder.png8.10KB7.86KB▼ 2.95%