Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.10ms] Passed 4 tests
An overview of server-side resources used by Admin Menu in Frontend
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.41 ▼2.66 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.56 ▼6.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.56 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.42 ▲6.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.94 ▲3.45 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Admin Menu in Frontend: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.09 | 4.69 ▲2.64 | 43.58 ▼0.17 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▼0.20 | 95.92 ▼17.23 | 39.67 ▼7.87 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.05 | 39.35 ▲3.03 | 34.07 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.32 ▼0.08 | 646.08 ▼28.77 | 62.51 ▲5.08 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▼0.02 | 104.70 ▼7.55 | 48.59 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in admin-menu-in-frontend/assets to your readme.txt
- Contributors: Plugin contributors not specified
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |