Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.51ms] Passed 4 tests
An overview of server-side resources used by Old Skool Admin Head
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.39 ▼7.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.74 ▲1.83 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.60 ▲2.58 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.97 ▼1.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.91 ▲1.24 |
Old Skool Admin /wp-admin/options-general.php?page=osha-options | 3.26 | 26.13 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
osah_settings |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Old Skool Admin Head
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.13 | 1.52 ▼0.41 | 40.39 ▼6.04 |
Dashboard /wp-admin | 2,210 ▲24 | 5.87 ▼0.05 | 113.94 ▲3.45 | 45.04 ▲3.59 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.00 ▼0.02 | 40.25 ▲3.35 | 34.38 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.09 ▼0.18 | 649.24 ▼21.60 | 59.20 ▲1.04 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.04 | 98.64 ▲3.52 | 44.50 ▲2.29 |
Old Skool Admin /wp-admin/options-general.php?page=osha-options | 816 | 2.06 | 25.21 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include(/admin/admin-page.php): failed to open stream: No such file or directory in wp-content/plugins/old-skool-admin-head/includes/class.admin.php on line 10
- > PHP Notice
Undefined variable: wp_plugin_dir in wp-content/plugins/old-skool-admin-head/includes/class.admin.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/old-skool-admin-head/admin/dis-admin-form.php:3
- > PHP Warning
include(): Failed opening '/admin/admin-page.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/old-skool-admin-head/includes/class.admin.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/old-skool-admin-head/oldskool-admin-head.php:61
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: "none"
- Screenshots: These screenshots require images: #1 (Options Page), #2 (Diasable Toolbar), #3 (Enable Admin Head), #4 (Diasable Toolbar and Enable Admin Head)
old-skool-admin-head/oldskool-admin-head.php 92% from 13 tests
Analyzing the main PHP file in "Old Skool Admin Head" version 1.1
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("old-skool-admin-head.php" instead of "oldskool-admin-head.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin416 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 136 | 195 | 258 |
CSS | 2 | 2 | 0 | 142 |
JavaScript | 1 | 1 | 2 | 16 |
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 code | 0.41 |
Average class complexity | 2.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrows-dark.png | 0.48KB | 0.24KB | ▼ 51.11% |
images/wp-logo.png | 0.83KB | 0.77KB | ▼ 7.18% |
images/arrows.png | 0.48KB | 0.24KB | ▼ 50.81% |