Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Compile error in wp-content/plugins/frontend-admin-menu/settings.php+11
Cannot redeclare frontend_admin_menu_activation() (previously declared in wp-content/plugins/frontend-admin-menu/frontend-admin-menu.php:28)
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests
An overview of server-side resources used by Frontend admin menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.52 ▲2.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.13 ▼3.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.25 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.50 ▼20.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.88 ▲3.84 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Frontend admin menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.33 | 1.66 ▲0.19 | 44.16 ▲7.41 |
Dashboard /wp-admin | 2,192 ▲15 | 5.50 ▼0.04 | 84.53 ▼15.87 | 43.19 ▼2.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.08 | 34.22 ▼1.97 | 35.44 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,527 ▼0 | 23.00 ▼0.16 | 670.13 ▲42.47 | 62.23 ▲17.01 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▼0.03 | 92.76 ▼5.30 | 39.94 ▼1.88 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'FRONTEND_ADMIN_MENU_DIRincludes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/frontend-admin-menu/settings.php on line 3
- > PHP Warning
require_once(FRONTEND_ADMIN_MENU_DIRincludes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-admin-menu/settings.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'FRONTEND_ADMIN_MENU_DIRadmin/includes/gs-middle-options-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/frontend-admin-menu/admin/options_admin_page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_editable_roles() in wp-content/plugins/frontend-admin-menu/admin/includes/gs-middle-options-page.php:2
- > PHP Warning
Use of undefined constant FRONTEND_ADMIN_MENU_DIR - assumed 'FRONTEND_ADMIN_MENU_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-admin-menu/settings.php on line 3
- > PHP Warning
require_once(FRONTEND_ADMIN_MENU_DIRadmin/includes/gs-middle-options-page.php): failed to open stream: No such file or directory in wp-content/plugins/frontend-admin-menu/admin/options_admin_page.php on line 4
- > PHP Warning
Use of undefined constant FRONTEND_ADMIN_MENU_DIR - assumed 'FRONTEND_ADMIN_MENU_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-admin-menu/admin/options_admin_page.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontend-admin-menu/includes/functions.php:6
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: administration menu, frontend menu, admin menu, backend menu, roles menu administration
frontend-admin-menu/frontend-admin-menu.php Passed 13 tests
The main PHP file in "Frontend admin menu" ver. 3.2.2 adds more information about the plugin and also serves as the entry point for this plugin
126 characters long description:
Create different menus for manage your site and then mapping user roles for each menus to display them as administration menu.
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 plugin3,365 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 6 | 126 | 32 | 366 |
CSS | 3 | 40 | 3 | 224 |
JavaScript | 2 | 3 | 14 | 104 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/frontend-admin-menu-donate.png | 1.98KB | 1.48KB | ▼ 24.98% |
admin/images/frontend_admin_menu-icon.png | 0.74KB | 0.90KB | 0.00% |