Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼125.37ms] Passed 4 tests
A check of server-side resources used by Flatty - Flat Admin Theme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.35 | 44.11 ▲11.54 |
Dashboard /wp-admin | 3.58 ▲0.52 | 74.99 ▲29.01 |
Posts /wp-admin/edit.php | 3.63 ▲0.52 | 67.35 ▲23.43 |
Add New Post /wp-admin/post-new.php | 5.83 ▲0.40 | 106.62 ▼547.34 |
Media Library /wp-admin/upload.php | 3.44 ▲0.44 | 52.82 ▲10.90 |
Flatty /wp-admin/admin.php?page=menu_main | 3.43 | 49.76 |
Dashboard /wp-admin/admin.php?page=menu_sub_dashboard | 3.43 | 52.08 |
Login /wp-admin/admin.php?page=menu_sub_login | 3.43 | 50.97 |
Appearance /wp-admin/admin.php?page=menu_sub_appearance | 3.44 | 46.45 |
Business Card /wp-admin/admin.php?page=menu_sub_business_card | 3.43 | 53.94 |
Posts & Pages /wp-admin/admin.php?page=menu_sub_postspages | 3.43 | 49.85 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Flatty - Flat Admin Theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,071 ▲475 | 18.13 ▲2.37 | 9.21 ▼1.91 | 44.00 ▼3.29 |
Dashboard /wp-admin | 3,279 ▲348 | 8.33 ▲2.30 | 176.66 ▲17.69 | 189.77 ▲81.10 |
Posts /wp-admin/edit.php | 3,099 ▲360 | 4.55 ▲1.83 | 86.58 ▲17.36 | 179.31 ▲92.04 |
Add New Post /wp-admin/post-new.php | 1,783 ▲202 | 18.35 ▲1.09 | 379.32 ▼58.19 | 126.76 ▼20.82 |
Media Library /wp-admin/upload.php | 1,939 ▲132 | 4.88 ▼0.16 | 125.46 ▼52.48 | 148.49 ▲6.73 |
Flatty /wp-admin/admin.php?page=menu_main | 1,577 | 4.02 | 70.03 | 180.16 |
Dashboard /wp-admin/admin.php?page=menu_sub_dashboard | 1,636 | 3.77 | 74.05 | 142.30 |
Login /wp-admin/admin.php?page=menu_sub_login | 2,231 | 3.81 | 78.81 | 179.54 |
Appearance /wp-admin/admin.php?page=menu_sub_appearance | 2,802 | 4.58 | 114.85 | 191.71 |
Business Card /wp-admin/admin.php?page=menu_sub_business_card | 1,873 | 3.90 | 75.22 | 175.25 |
Posts & Pages /wp-admin/admin.php?page=menu_sub_postspages | 2,025 | 3.80 | 75.90 | 150.26 |
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
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/flatty-flat-admin-theme/includes/menu/icon.php
- 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/login/recaptcha.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/dashboard/support_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/init/media_loader.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/login/logo.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/appearance/topbar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/business_card.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/menu/menu-sub-login.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flatty-flat-admin-theme/includes/init/options/login/messages.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatty-flat-admin-theme/includes/pages/main_dashboard.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (29 tag instead of maximum 10)
flatty-flat-admin-theme/flatty-admin-theme.php 92% from 13 tests
The main PHP script in "Flatty - Flat Admin Theme" version 2.0.0 is automatically included on every request by WordPress
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 ("flatty-flat-admin-theme.php" instead of "flatty-admin-theme.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected5,377 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 224 | 150 | 2,830 |
CSS | 21 | 105 | 245 | 1,534 |
SVG | 1 | 0 | 1 | 533 |
PO File | 1 | 123 | 127 | 269 |
JavaScript | 1 | 46 | 18 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/vendor/color-picker-h.png | 1.66KB | 1.66KB | 0.41% |
assets/icon-256x256.png | 67.46KB | 24.39KB | ▼ 63.85% |
assets/arrow-down.png | 14.93KB | 0.33KB | ▼ 97.81% |
assets/css/vendor/color-picker-sv.png | 106.66KB | 50.25KB | ▼ 52.88% |
assets/banner-772x250.png | 76.88KB | 19.31KB | ▼ 74.88% |