99% admin-sticky-widget-areas

Code Review | Admin Sticky Widget Areas

WordPress plugin Admin Sticky Widget Areas scored 99% 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: 5.9.2
  • 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

90+ active / 1,995 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼298.66ms] Passed 4 tests

Analyzing server-side resources used by Admin Sticky Widget Areas
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0163.48 ▲9.95
Dashboard /wp-admin3.41 ▲0.0135.87 ▼4.63
Posts /wp-admin/edit.php3.64 ▲0.0174.97 ▲31.97
Add New Post /wp-admin/post-new.php6.88 ▼0.09100.71 ▼1,201.00
Media Library /wp-admin/upload.php3.30 ▲0.0029.75 ▲1.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Sticky Widget Areas
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2815.30 ▼0.355.91 ▼1.822.12 ▼0.25
Dashboard /wp-admin2,881 ▲236.12 ▼0.03116.93 ▼16.74157.40 ▼33.80
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0162.02 ▼0.70139.38 ▼2.36
Add New Post /wp-admin/post-new.php1,711 ▲5020.75 ▲4.50443.66 ▲14.86170.69 ▲14.67
Media Library /wp-admin/upload.php1,695 ▼05.53 ▲0.09141.40 ▼11.28189.78 ▼30.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were 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: admin, sticky, widgets

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

The entry point to "Admin Sticky Widget Areas" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-sticky-widget-areas.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP132311
CSS1207

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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
There were not PNG files found in your plugin