89% admin-sticky-widget-areas

Code Review | Admin Sticky Widget Areas

WordPress plugin Admin Sticky Widget Areas scored89%from 54 tests.

About plugin

  • Plugin page: admin-sticky-widg...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2017
  • Latest release: May 14, 2019
  • Number of updates: 7
  • Update frequency: every 74.3 days
  • Top authors: srikat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.44ms] Passed 4 tests

Analyzing server-side resources used by Admin Sticky Widget Areas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.35 ▼4.19
Dashboard /wp-admin3.31 ▲0.0045.16 ▼1.75
Posts /wp-admin/edit.php3.36 ▲0.0044.43 ▼0.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.53 ▲3.40
Media Library /wp-admin/upload.php3.24 ▲0.0033.68 ▲0.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Admin Sticky Widget Areas
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.74 ▼0.0642.66 ▼2.42
Dashboard /wp-admin2,192 ▲155.51 ▼0.1284.91 ▼1.1438.31 ▼1.43
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0235.33 ▼0.4533.97 ▲2.29
Add New Post /wp-admin/post-new.php1,528 ▼123.08 ▼0.12633.01 ▼71.1650.79 ▼4.60
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.03101.94 ▼7.1744.53 ▼2.86

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widgets, admin, sticky

admin-sticky-widget-areas/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Admin Sticky Widget Areas" version 1.0.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-sticky-widget-areas.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP132311
CSS1207

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected