90% sticky-block

Code Review | Sticky Block for Gutenberg Editor

WordPress plugin Sticky Block for Gutenberg Editor scored90%from 54 tests.

About plugin

  • Plugin page: sticky-block
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2020
  • Latest release: Mar 18, 2023
  • Number of updates: 10
  • Update frequency: every 114.5 days
  • Top authors: senff (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

5,000+ active /21,600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by Sticky Block for Gutenberg Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.38 ▼4.71
Dashboard /wp-admin3.32 ▲0.0144.03 ▼4.65
Posts /wp-admin/edit.php3.37 ▲0.0144.98 ▼0.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.22 ▼7.95
Media Library /wp-admin/upload.php3.24 ▲0.0131.98 ▼0.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sticky Block for Gutenberg Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.57 ▼1.028.62 ▲6.8939.26 ▼4.03
Dashboard /wp-admin2,203 ▲154.80 ▼1.09111.66 ▲4.0342.31 ▼1.68
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0340.82 ▲2.6736.32 ▲3.06
Add New Post /wp-admin/post-new.php6,185 ▲4,66619.24 ▼3.97825.06 ▲141.9960.03 ▲6.31
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.0796.08 ▼0.4241.17 ▼2.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: gutenberg, sticky, sticky block

sticky-block/plugin.php 92% from 13 tests

"Sticky Block for Gutenberg Editor" version 1.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sticky-block.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin338 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54753259
PHP2121057
Sass23020
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin