84% wpwing-sticky-block

Code Review | WPWing Sticky Block

WordPress plugin WPWing Sticky Block scored84%from 54 tests.

About plugin

  • Plugin page: wpwing-sticky-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Jul 5, 2022
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: wpwing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /235 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.01MB] [CPU: ▲1.09ms] Passed 4 tests

An overview of server-side resources used by WPWing Sticky Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.14 ▼4.44
Dashboard /wp-admin3.32 ▲0.0148.14 ▲1.75
Posts /wp-admin/edit.php3.37 ▲0.0150.28 ▲2.49
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.17 ▲16.52
Media Library /wp-admin/upload.php3.24 ▲0.0137.86 ▲4.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPWing Sticky Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14913.62 ▼0.826.72 ▲4.4343.56 ▼0.59
Dashboard /wp-admin2,203 ▲184.88 ▼1.01111.08 ▼1.2745.38 ▲7.05
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0239.05 ▼2.7634.47 ▼0.67
Add New Post /wp-admin/post-new.php6,413 ▲4,87728.33 ▲5.31889.41 ▲204.7770.13 ▲17.23
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.09100.03 ▼4.5140.24 ▼8.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 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/wpwing-sticky-block/wpwing-sticky-block.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: sticky, gutenberg, sticky block, block editor

wpwing-sticky-block/wpwing-sticky-block.php 85% from 13 tests

The primary PHP file in "WPWing Sticky Block" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "5.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin97 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON10036
JavaScript261033
PHP263228

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected