Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-admin-style/wp-admin-style.php+20
Undefined variable: wpdb
Server metrics [RAM: ▼0.36MB] [CPU: ▼312.85ms] Passed 4 tests
An overview of server-side resources used by WP Admin Style
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 59.75 ▲5.81 |
Dashboard /wp-admin | 3.24 ▼0.17 | 23.14 ▼9.83 |
Posts /wp-admin/edit.php | 3.30 ▼0.34 | 26.05 ▼17.14 |
Add New Post /wp-admin/post-new.php | 6.09 ▼0.88 | 74.77 ▼1,216.78 |
Media Library /wp-admin/upload.php | 3.26 ▼0.03 | 20.72 ▼7.63 |
Yummi Plugins /wp-admin/admin.php?page=yummi | 3.23 | 21.23 |
Admin Style /wp-admin/admin.php?page=wpas | 3.23 | 20.95 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Admin Style: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,829 ▲75 | 16.14 ▲0.73 | 6.07 ▼7.12 | 2.12 ▼0.96 |
Dashboard /wp-admin | 2,922 ▲61 | 6.10 ▼0.07 | 118.21 ▼20.87 | 192.60 ▼46.08 |
Posts /wp-admin/edit.php | 2,723 ▲35 | 3.24 ▲0.00 | 111.35 ▲43.08 | 163.44 ▼51.33 |
Add New Post /wp-admin/post-new.php | 1,784 ▲123 | 22.07 ▲3.40 | 418.55 ▲14.31 | 180.04 ▼4.68 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.54 ▲0.09 | 167.89 ▲34.06 | 212.27 ▲20.94 |
Yummi Plugins /wp-admin/admin.php?page=yummi | 2,501 | 8.40 | 237.50 | 231.01 |
Admin Style /wp-admin/admin.php?page=wpas | 1,128 | 2.40 | 55.91 | 175.01 |
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 successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpas
- > Notice in wp-content/plugins/wp-admin-style/wp-admin-style.php+61
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=yummi
- > Notice in wp-content/plugins/wp-admin-style/includes/yummi-plugins.php+117
Undefined variable: tab
- > GET request to /wp-admin/admin.php?page=wpas
- > Notice in wp-content/plugins/wp-admin-style/includes/admin.php+53
Undefined index: action
- > GET request to /wp-admin/admin.php?page=wpas
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=wpas
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-style/includes/admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wp-admin-style/includes/yummi-plugins.php:5
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
- > PHP Warning
include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-admin-style/includes/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-admin-style/wp-admin-style.php:16
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=yummi
- > Network (severe)
https://www.paypalobjects.com/en_IT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #5 in wp-admin-style/assets to your readme.txt
wp-admin-style/wp-admin-style.php 85% from 13 tests
"WP Admin Style" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages")
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
Everything looks great! No dangerous files found in this plugin816 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 50 | 24 | 553 |
PHP | 3 | 76 | 77 | 263 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/dashicons-yummi.png | 1.81KB | 0.85KB | ▼ 52.89% |