Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.02MB] [CPU: ▼287.85ms] Passed 4 tests
A check of server-side resources used by SnazzyAdmin WP Admin Theme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.59 ▲2.08 | 70.02 ▲16.36 |
Dashboard /wp-admin | 5.61 ▲2.20 | 53.13 ▲13.38 |
Posts /wp-admin/edit.php | 5.61 ▲1.97 | 57.78 ▲17.10 |
Add New Post /wp-admin/post-new.php | 8.80 ▲1.84 | 115.55 ▼1,196.69 |
Media Library /wp-admin/upload.php | 5.61 ▲2.32 | 44.97 ▲15.56 |
SnazzyAdmin WP Admin Theme /wp-admin/admin.php?page=snazzyadmin-wp-admin-theme | 5.61 | 41.69 |
Freemius Debug [v.1.2.3] /wp-admin/admin.php?page=freemius | 5.61 | 42.41 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 177 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_api_cache |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SnazzyAdmin WP Admin Theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,072 ▲318 | 17.73 ▲1.91 | 7.11 ▲1.13 | 3.14 ▲0.30 |
Dashboard /wp-admin | 3,166 ▲312 | 8.46 ▲2.26 | 149.80 ▲2.52 | 201.23 ▲34.26 |
Posts /wp-admin/edit.php | 3,010 ▲322 | 5.55 ▲2.19 | 83.15 ▲20.38 | 181.64 ▲41.78 |
Add New Post /wp-admin/post-new.php | 1,877 ▲216 | 20.71 ▲4.32 | 428.70 ▼18.27 | 184.74 ▲30.88 |
Media Library /wp-admin/upload.php | 1,789 ▲91 | 5.78 ▲0.29 | 112.99 ▼28.11 | 241.23 ▲55.85 |
SnazzyAdmin WP Admin Theme /wp-admin/admin.php?page=snazzyadmin-wp-admin-theme | 1,553 | 4.83 | 71.75 | 216.79 |
Freemius Debug [v.1.2.3] /wp-admin/admin.php?page=freemius | 1,714 | 4.75 | 72.83 | 149.75 |
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 4 options in the database
- fs_active_plugins
- fs_debug_mode
- fs_accounts
- fs_api_cache
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/snazzyadmin-wp-admin-theme/freemius/templates/ajax-loader.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in snazzyadmin-wp-admin-theme/assets to your readme.txt
- Tags: There are too many tags (20 tag instead of maximum 10)
snazzyadmin-wp-admin-theme/snazzyadmin.php 85% from 13 tests
"SnazzyAdmin WP Admin Theme" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("snazzyadmin-wp-admin-theme.php" instead of "snazzyadmin.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin28,449 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 4,412 | 10,802 | 18,823 |
PO File | 6 | 2,778 | 3,058 | 6,111 |
Sass | 21 | 345 | 76 | 2,159 |
CSS | 12 | 124 | 0 | 872 |
JavaScript | 4 | 51 | 76 | 265 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 49.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,333.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 2 | 4.88% |
▷ Concrete classes | 39 | 95.12% |
▷ Final classes | 0 | 0.00% |
Methods | 789 | |
▷ Static methods | 125 | 15.84% |
▷ Public methods | 595 | 75.41% |
▷ Protected methods | 14 | 1.77% |
▷ Private methods | 180 | 22.81% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 84 | 80.77% |
▷ Class constants | 20 | 19.23% |
▷ Public constants | 20 | 100.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
5 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/snazzyadmin-wp-admin-theme.png | 9.16KB | 5.26KB | ▼ 42.58% |
global/img/bg-2.png | 424.98KB | 124.52KB | ▼ 70.70% |
freemius/assets/img/WPFresherCartAdd-Ons.png | 9.16KB | 5.26KB | ▼ 42.58% |