84% fixed-widget-area

Code Review | Fixed Widget Area

WordPress plugin Fixed Widget Area scored84%from 54 tests.

About plugin

  • Plugin page: fixed-widget-area
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Aug 5, 2021
  • Number of updates: 26
  • Update frequency: every 92.5 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /13,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Fixed Widget Area
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0053.06 ▲10.47
Dashboard /wp-admin3.31 ▼0.0446.64 ▼20.99
Posts /wp-admin/edit.php3.36 ▲0.0049.17 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.12 ▼11.43
Media Library /wp-admin/upload.php3.23 ▲0.0040.81 ▲2.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Fixed Widget Area
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.071.70 ▲0.0741.39 ▼1.83
Dashboard /wp-admin2,192 ▲155.69 ▲0.0189.67 ▼11.0540.07 ▼1.05
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0133.82 ▼4.4836.68 ▲2.25
Add New Post /wp-admin/post-new.php1,527 ▲123.06 ▼0.51650.21 ▼45.2558.01 ▲0.58
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0398.98 ▼6.7445.32 ▼0.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 no errors were found, this is by no means 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fixed-widget-area/fixed-widget-area.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
The official readme.txt might help

fixed-widget-area/fixed-widget-area.php Passed 13 tests

The main file in "Fixed Widget Area" v. 4.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Fix widget Area on right side while scrolling and drag widget easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin31 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14118
PHP11913

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png86.89KB29.90KB▼ 65.59%