Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by Fancy User List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 46.03 ▲2.26 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.63 ▼18.68 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.32 ▼2.75 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.28 ▼2.87 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.13 ▲2.91 |
Add new list /wp-admin/post-new.php?post_type=fancy_user_list | 3.34 | 42.92 |
Lists /wp-admin/edit.php?post_type=fancy_user_list | 3.37 | 42.94 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fancy User List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲171 | 13.66 ▼0.72 | 6.32 ▲4.13 | 43.19 ▼1.24 |
Dashboard /wp-admin | 2,237 ▲48 | 4.87 ▼0.02 | 106.88 ▼19.62 | 40.31 ▼1.49 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.03 ▼0.01 | 37.49 ▲2.96 | 34.50 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.27 ▲5.67 | 643.98 ▼57.18 | 57.49 ▼23.38 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.23 ▲0.04 | 96.64 ▼4.35 | 41.65 ▼6.73 |
Add new list /wp-admin/post-new.php?post_type=fancy_user_list | 1,729 | 2.57 | 51.00 | 55.93 |
Lists /wp-admin/edit.php?post_type=fancy_user_list | 1,084 | 2.01 | 30.78 | 29.66 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+168
Undefined index: users_quantity
- 11 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+208
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+171
Undefined index: users_shape
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+175
Undefined index: users_avatar
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+179
Undefined index: users_popup
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+183
Undefined index: users_bio
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+187
Undefined index: users_posts_num
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+191
Undefined index: users_posts_reveal
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+194
Undefined index: listing_order
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+200
Undefined index: listing_order_type
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+204
Undefined index: page_title
- > GET request to /wp-admin/post-new.php?post_type=fancy_user_list
- > Notice in wp-content/plugins/fancy-user-listing/fancy-user-list.php+208
Undefined index: custom_users_listing
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-user-listing/fancy-user-list.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Plugin Name: You should set the name of your plugin on the first line (
=== fancy-user-listing ===
)
fancy-user-listing/fancy-user-list.php 92% from 13 tests
"Fancy User List" version 3.1'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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fancy-user-listing.php" instead of "fancy-user-list.php")
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
Good job! No executable or dangerous file extensions detected998 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 39 | 468 |
CSS | 2 | 83 | 7 | 408 |
JavaScript | 2 | 14 | 3 | 122 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close-white-ex.png | 8.47KB | 3.16KB | ▼ 62.65% |
assets/images/dead.png | 21.02KB | 8.92KB | ▼ 57.56% |