Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by Custom Admin Panel by 2Cloud
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.77 ▲3.48 |
Dashboard /wp-admin | 3.39 ▲0.04 | 49.07 ▼10.72 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 47.81 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.79 ▼6.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.19 ▲1.56 |
Admin Panel /wp-admin/admin.php?page=cloud-top-level-handle | 3.29 | 29.65 |
Social Media /wp-admin/admin.php?page=social-options | 3.29 | 38.85 |
Custom CSS & JS /wp-admin/admin.php?page=custom-options | 3.28 | 32.57 |
Logo & Branding /wp-admin/admin.php?page=logo-options | 3.28 | 31.98 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_custom_admin |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Admin Panel by 2Cloud
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.27 ▼0.07 | 1.96 ▲0.26 | 42.31 ▼0.58 |
Dashboard /wp-admin | 2,223 ▲43 | 5.64 ▲0.00 | 102.54 ▲7.69 | 44.78 ▼3.13 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.29 ▲0.31 | 43.86 ▲6.17 | 32.05 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.27 ▲0.19 | 608.60 ▼60.67 | 32.56 ▼14.05 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.18 ▼0.04 | 109.87 ▲10.19 | 40.35 ▼5.00 |
Admin Panel /wp-admin/admin.php?page=cloud-top-level-handle | 1,126 | 1.94 | 37.44 | 28.90 |
Social Media /wp-admin/admin.php?page=social-options | 1,038 | 1.78 | 29.72 | 34.92 |
Custom CSS & JS /wp-admin/admin.php?page=custom-options | 920 | 1.74 | 29.61 | 28.95 |
Logo & Branding /wp-admin/admin.php?page=logo-options | 925 | 1.77 | 29.52 | 34.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_custom_admin
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-home.php
- > /wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-top-menu.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-admin-panel-by-2cloud/2cloud-admin-panel.php:174
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-admin-panel-by-2cloud/inc/social-media-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-custom.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-logo.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-admin-panel-by-2cloud/inc/admin-panel-social.php:20
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
3 plugin tags: social icons, custom css js, admin panel
custom-admin-panel-by-2cloud/2cloud-admin-panel.php 92% from 13 tests
The entry point to "Custom Admin Panel by 2Cloud" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-admin-panel-by-2cloud.php" instead of "2cloud-admin-panel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected669 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 138 | 54 | 639 |
CSS | 1 | 12 | 0 | 22 |
JavaScript | 1 | 18 | 27 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 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
14 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social/rss.png | 5.81KB | 2.15KB | ▼ 62.97% |
images/social/android.png | 5.33KB | 2.10KB | ▼ 60.60% |
images/social/soundscloud.png | 5.09KB | 2.05KB | ▼ 59.73% |
images/social/google+.png | 5.58KB | 2.15KB | ▼ 61.47% |
images/social/pinterest.png | 5.59KB | 2.19KB | ▼ 60.89% |