84% dl-admin-bar-bottom-position

Code Review | DL Admin Bar Bottom Position

WordPress plugin DL Admin Bar Bottom Position scored84%from 54 tests.

About plugin

  • Plugin page: dl-admin-bar-bott...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Feb 5, 2014
  • Latest release: Aug 26, 2016
  • Number of updates: 10
  • Update frequency: every 93.3 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 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
Install script ran successfully

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

An overview of server-side resources used by DL Admin Bar Bottom Position
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.85 ▼8.84
Dashboard /wp-admin3.32 ▼0.0354.36 ▼5.27
Posts /wp-admin/edit.php3.37 ▲0.0151.16 ▼0.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.53 ▼11.69
Media Library /wp-admin/upload.php3.24 ▲0.0132.67 ▼4.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by DL Admin Bar Bottom Position
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.48 ▲0.211.86 ▲0.0544.79 ▲1.66
Dashboard /wp-admin2,206 ▲154.82 ▼0.05101.20 ▼12.2839.59 ▼3.85
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0139.71 ▲0.3536.83 ▼0.37
Add New Post /wp-admin/post-new.php1,514 ▼2117.54 ▼5.77668.97 ▼16.2452.37 ▼7.65
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0597.57 ▼17.6742.89 ▼3.11

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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/dl-admin-bar-bottom-position/dl-admin-bar-bottom-position.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Страница настроек палгина), #2 (Страница настроек палгина)
You can take inspiration from this readme.txt

dl-admin-bar-bottom-position/dl-admin-bar-bottom-position.php Passed 13 tests

The principal PHP file in "DL Admin Bar Bottom Position" v. 1.1 is loaded by WordPress automatically on each request
104 characters long description:
Этот плагин прижимает админ-панели к нижней части экрана

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121648

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions5
▷ Named functions5100.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
2 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png117.61KB42.58KB▼ 63.79%
screenshot-2.png116.21KB43.32KB▼ 62.72%