Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼445.97ms] Passed 4 tests
A check of server-side resources used by Admin Menu in Frontend
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 55.74 ▲4.31 |
Dashboard /wp-admin | 3.48 ▲0.07 | 31.48 ▼2.29 |
Posts /wp-admin/edit.php | 3.70 ▲0.07 | 36.72 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 105.52 ▼1,773.28 |
Media Library /wp-admin/upload.php | 3.36 ▲0.05 | 24.24 ▼7.63 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Menu in Frontend
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲46 | 16.28 ▲0.23 | 5.82 ▼0.08 | 2.31 ▼0.21 |
Dashboard /wp-admin | 2,895 ▲34 | 6.10 ▼0.07 | 120.41 ▼15.34 | 157.61 ▲1.91 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.35 ▲0.11 | 66.86 ▲1.31 | 142.41 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,661 ▼55 | 17.12 ▼4.83 | 425.57 ▼26.63 | 156.65 ▼2.47 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▲0.01 | 139.85 ▼4.61 | 185.29 ▼11.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in admin-menu-in-frontend/assets to your readme.txt
- Contributors: The plugin contributors field is missing
admin-menu-in-frontend/admin-menu-in-frontend.php Passed 13 tests
Analyzing the main PHP file in "Admin Menu in Frontend" version 1.1.1
44 characters long description:
Allows to show admin menu when viewing site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,168 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 102 | 22 | 734 |
PHP | 1 | 65 | 70 | 244 |
JavaScript | 1 | 30 | 12 | 190 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 190.00KB | 78.40KB | ▼ 58.74% |