94% admin-loaded-display

Code Review | Admin Loaded Display

WordPress plugin Admin Loaded Display scored 94% from 54 tests.

About plugin

  • Plugin page: admin-loaded-display
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 5.9.2
  • First release: May 26, 2019
  • Latest release: Mar 21, 2021
  • Number of updates: 9
  • Update frequency: every 74.7 days
  • Top authors: brownbrowniebrownerson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 419 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Admin Loaded Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0557.24 ▲5.86
Dashboard /wp-admin3.42 ▲0.0233.53 ▼2.08
Posts /wp-admin/edit.php3.66 ▲0.0237.90 ▼1.59
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.79 ▼1,171.53
Media Library /wp-admin/upload.php3.31 ▲0.0125.32 ▲0.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Loaded Display
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,935 ▲19016.24 ▲0.499.20 ▲3.412.89 ▲0.64
Dashboard /wp-admin2,902 ▲446.04 ▼0.12120.65 ▼15.40158.42 ▼2.90
Posts /wp-admin/edit.php2,702 ▲83.24 ▲0.0164.56 ▼0.59138.75 ▼1.86
Add New Post /wp-admin/post-new.php1,679 ▼7316.75 ▼4.76409.81 ▼26.33160.19 ▲2.65
Media Library /wp-admin/upload.php1,712 ▲145.56 ▲0.03137.79 ▲1.60195.22 ▲7.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-loaded-display/classes/class-collect-the-registered-scripts.php
    • > /wp-content/plugins/admin-loaded-display/admin-loaded-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: loaded styles, loaded scripts

admin-loaded-display/admin-loaded-display.php Passed 13 tests

"Admin Loaded Display" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Adds a button to the admin bar that displays the loaded scripts

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
Everything looks great! No dangerous files found in this plugin163 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2225366
JavaScript1201462
CSS14235

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png157.82KB39.96KB▼ 74.68%
assets/icon-128x128.png34.96KB9.72KB▼ 72.20%