84% q2w3-fixed-widget

Code Review | Fixed Widget and Sticky Elements for WordPress

WordPress plugin Fixed Widget and Sticky Elements for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: q2w3-fixed-widget
  • Plugin version: 6.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Mar 30, 2023
  • Number of updates: 126
  • Update frequency: every 30.0 days
  • Top authors: Max Bond (50%)webzunft (42.86%)advancedads (8.73%)

Code review

54 tests

User reviews

260 reviews

Install metrics

100,000+ active /2,209,264 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼12.51ms] Passed 4 tests

A check of server-side resources used by Fixed Widget and Sticky Elements for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.79 ▼25.48
Dashboard /wp-admin3.42 ▲0.0747.87 ▼16.71
Posts /wp-admin/edit.php3.54 ▲0.1847.72 ▲1.68
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.37 ▼9.51
Media Library /wp-admin/upload.php3.34 ▲0.1142.44 ▲7.43
Fixed Widget /wp-admin/themes.php?page=q2w3_fixed_widget3.4734.81

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

Input-output and database impact of this plugin
This plugin was installed successfully
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

Fixed Widget and Sticky Elements for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.34 ▼1.012.92 ▲1.0143.16 ▼0.54
Dashboard /wp-admin2,212 ▲245.91 ▲0.0294.62 ▼8.4339.31 ▼5.36
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0541.91 ▲9.6333.36 ▲0.29
Add New Post /wp-admin/post-new.php1,530 ▼1223.02 ▲4.98639.51 ▲9.7363.40 ▲13.86
Media Library /wp-admin/upload.php1,394 ▲34.21 ▲0.0996.97 ▼6.7743.55 ▼0.18
Fixed Widget /wp-admin/themes.php?page=q2w3_fixed_widget1,0772.1240.2142.68

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/q2w3-fixed-widget/q2w3-fixed-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

q2w3-fixed-widget/q2w3-fixed-widget.php 92% from 13 tests

"Fixed Widget and Sticky Elements for WordPress" version 6.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,366 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43092671,949
PHP3115141378
CSS17139

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27100.00%
▷ Public methods2074.07%
▷ Protected methods622.22%
▷ Private methods13.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected