84% admin-loaded-display

Code Review | Admin Loaded Display

WordPress plugin Admin Loaded Display scored84%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: 6.3.1
  • 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 /595 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Admin Loaded Display
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.95 ▼6.84
Dashboard /wp-admin3.32 ▲0.0156.67 ▲8.30
Posts /wp-admin/edit.php3.37 ▲0.0149.61 ▼4.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.82 ▼19.25
Media Library /wp-admin/upload.php3.25 ▲0.0137.56 ▲1.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Admin Loaded Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.41 ▼1.148.59 ▲6.5043.71 ▼3.09
Dashboard /wp-admin2,214 ▲375.59 ▼0.0690.53 ▼0.8940.74 ▼5.87
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0434.36 ▼5.6234.58 ▼7.73
Add New Post /wp-admin/post-new.php1,536 ▲1023.40 ▼0.11707.18 ▲2.5656.66 ▼0.08
Media Library /wp-admin/upload.php1,416 ▲134.13 ▼0.03105.79 ▲0.7347.28 ▲3.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: loaded styles, loaded scripts

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

The main PHP file in "Admin Loaded Display" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected163 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2225366
JavaScript1201462
CSS14235

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in 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/icon-128x128.png34.96KB9.72KB▼ 72.20%
assets/banner-772x250.png157.82KB39.96KB▼ 74.68%