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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.96ms] Passed 4 tests
Analyzing server-side resources used by WP Flat Admin Theme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 46.50 ▲2.75 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.57 ▼8.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.02 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.50 ▼7.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 42.01 ▲0.63 |
WP Flat Admin /wp-admin/options-general.php?page=wpflatadmin | 3.24 | 38.27 |
Server storage [IO: ▲8.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 273 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Flat Admin Theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.39 ▲0.02 | 1.63 ▼0.95 | 41.03 ▼17.95 |
Dashboard /wp-admin | 2,208 ▲20 | 5.83 ▼0.07 | 105.41 ▼3.27 | 66.22 ▲26.87 |
Posts /wp-admin/edit.php | 2,100 ▲14 | 2.02 ▲0.02 | 44.02 ▲5.35 | 69.99 ▲34.10 |
Add New Post /wp-admin/post-new.php | 1,674 ▲155 | 22.37 ▼1.08 | 714.96 ▼48.54 | 62.24 ▼5.55 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.19 ▼0.01 | 109.31 ▼30.40 | 68.50 ▲22.50 |
WP Flat Admin /wp-admin/options-general.php?page=wpflatadmin | 1,001 | 3.01 | 44.63 | 43.81 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpflatadmin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpflatadmin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpflatadmin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpflatadmin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flatadmin/inc/login.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flatadmin/login/add_menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flatadmin/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-flatadmin/login/config_options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flatadmin/login/login.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wpflatadmin
- > Network (severe)
wp-content/plugins/wp-flatadmin/assets/js/logo-uploader.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: admin, flat ui admin, login, flat theme, admin login...
wp-flatadmin/index.php 92% from 13 tests
Analyzing the main PHP file in "WP Flat Admin Theme" version 1.0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-flatadmin.php" instead of "index.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
Good job! No executable or dangerous file extensions detected62,182 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 22 | 0 | 1 | 28,376 |
JavaScript | 10 | 1,987 | 2,233 | 11,355 |
CSS | 6 | 54 | 85 | 7,235 |
LESS | 63 | 1,037 | 858 | 6,326 |
HTML | 22 | 639 | 224 | 6,064 |
JSON | 5 | 0 | 0 | 2,516 |
Markdown | 3 | 76 | 0 | 190 |
PHP | 5 | 35 | 34 | 120 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
47 PNG files occupy 0.53MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Flat-UI/dist/img/icons/png/Retina-Ready.png | 10.19KB | 4.67KB | ▼ 54.13% |
Flat-UI/docs/assets/img/demo/html-icon.png | 4.24KB | 1.89KB | ▼ 55.49% |
Flat-UI/img/login/imac-2x.png | 21.77KB | 8.56KB | ▼ 60.68% |
Flat-UI/dist/img/icons/png/Chat.png | 4.16KB | 1.97KB | ▼ 52.74% |
Flat-UI/img/login/icon.png | 7.33KB | 3.18KB | ▼ 56.59% |