Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5653
File registration.php is deprecated since version 3.1.0 with no alternative available. This file no longer needs to be included.
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.94ms] Passed 4 tests
Analyzing server-side resources used by User-dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.91 ▼38.00 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.94 ▼49.14 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.41 ▼43.77 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.07 ▼92.42 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 7.08 ▼38.41 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
User-dashboard: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.21 | 1.70 ▼0.09 | 43.39 ▼0.24 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▲0.03 | 108.92 ▼4.72 | 43.57 ▼3.67 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 37.03 ▲2.91 | 32.20 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.65 ▼5.75 | 686.39 ▲17.22 | 53.54 ▼4.51 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.02 | 95.12 ▼2.04 | 40.47 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5653
File registration.php is deprecated since version 3.1.0 with no alternative available. This file no longer needs to be included.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/user-dashboard/includes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/user-dashboard/index.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-dashboard/filters.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (After login dashboard), #2 (Before login dashboard), #3 (Login screen), #4 (Registration screen), #5 (Forgot password screen), #6 (Profile pic screen), #7 (Profile edit screen)
user-dashboard/index.php 85% from 13 tests
"User-dashboard" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("user-dashboard.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 441 characters long)
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
No dangerous file extensions were detected570 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 68 | 24 | 570 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/login.png | 14.20KB | 5.86KB | ▼ 58.76% |
images/profile.png | 12.47KB | 5.47KB | ▼ 56.16% |
images/profile-pic.png | 17.83KB | 6.63KB | ▼ 62.78% |
screenshot-3.png | 33.13KB | 14.76KB | ▼ 55.45% |
screenshot-1.png | 27.82KB | 12.43KB | ▼ 55.32% |