Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.72MB] [CPU: ▲31.24ms] 50% from 4 tests
An overview of server-side resources used by WP Frontend Admin - Display WP Admin Pages in the Frontend
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,890.37ms on /wp-admin/admin.php?page=wpatof_welcome_page)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.72MB on /wp-admin/admin.php?page=wpatof_welcome_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.40 ▲5.94 | 76.10 ▲35.29 |
Dashboard /wp-admin | 9.42 ▲6.12 | 86.51 ▲34.35 |
Posts /wp-admin/edit.php | 9.43 ▲6.07 | 88.22 ▲41.24 |
Add New Post /wp-admin/post-new.php | 10.64 ▲4.75 | 130.74 ▲14.08 |
Media Library /wp-admin/upload.php | 9.42 ▲6.20 | 90.68 ▲53.40 |
Frontend Admin /wp-admin/admin.php?page=wpatof_whats_new | 9.42 | 71.10 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.42 | 64.17 |
Frontend Admin /wp-admin/admin.php?page=wpatof_welcome_page | 9.42 | 1,890.37 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 228 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
can_compress_scripts |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
wpatof_welcome_redirect |
widget_recent-posts |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Frontend Admin - Display WP Admin Pages in the Frontend
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲108 | 13.57 ▼0.80 | 1.64 ▼0.25 | 28.10 ▼17.07 |
Dashboard /wp-admin | 2,260 ▲57 | 5.85 ▲0.03 | 100.99 ▼4.71 | 77.20 ▲36.08 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.03 ▲0.06 | 36.61 ▼10.55 | 40.41 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,716 ▲171 | 22.33 ▼0.68 | 681.25 ▲7.94 | 34.49 ▼30.56 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.30 ▲0.08 | 114.11 ▲7.70 | 98.28 ▲49.91 |
Frontend Admin /wp-admin/admin.php?page=wpatof_whats_new | 826 | 1.68 | 28.50 | 32.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,116 | 1.73 | 30.43 | 26.67 |
Frontend Admin /wp-admin/admin.php?page=wpatof_welcome_page | 1,016 | 1.79 | 31.48 | 65.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/display-admin-page-on-frontend/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- wpatof_welcome_redirect
- fs_accounts
- fs_debug_mode
- db_upgraded
- fs_active_plugins
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/display-admin-page-on-frontend/vendor/vg-plugin-sdk/views/settings-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/display-admin-page-on-frontend/views/frontend/wrong-plan.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/display-admin-page-on-frontend/views/frontend/logged-in-user-not-allowed.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-admin-page-on-frontend/inc/compatibility/elementor.php:193
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/display-admin-page-on-frontend/views/frontend/page.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/display-admin-page-on-frontend/views/welcome-page-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/display-admin-page-on-frontend/inc/change-texts.php:14
- > PHP Notice
Undefined variable: minimum_height_px in wp-content/plugins/display-admin-page-on-frontend/views/frontend/page.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/display-admin-page-on-frontend/inc/shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/display-admin-page-on-frontend/inc/access-restrictions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: user dashboard, frontend dashboard, dashboard, custom dashboard, frontend editor
display-admin-page-on-frontend/index.php 85% from 13 tests
The entry point to "WP Frontend Admin - Display WP Admin Pages in the Frontend" version 1.21.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("display-admin-page-on-frontend.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin46,194 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 8,622 | 17,515 | 38,497 |
PO File | 5 | 1,078 | 1,374 | 5,660 |
JavaScript | 6 | 194 | 236 | 1,620 |
CSS | 16 | 13 | 15 | 417 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 89.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,450 | |
▷ Static methods | 206 | 14.21% |
▷ Public methods | 1,052 | 72.55% |
▷ Protected methods | 17 | 1.17% |
▷ Private methods | 381 | 26.28% |
Functions | 109 | |
▷ Named functions | 108 | 99.08% |
▷ Anonymous functions | 1 | 0.92% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/wp-admin-icon.png | 0.80KB | 1.07KB | 0.00% |
assets/imgs/page-not-allowed-instructions.png | 30.85KB | 12.04KB | ▼ 60.97% |
assets/imgs/logo.png | 9.02KB | 4.18KB | ▼ 53.66% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/imgs/toolbar-item-screenshot.png | 17.46KB | 6.76KB | ▼ 61.28% |