Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.03ms] Passed 4 tests
An overview of server-side resources used by User Directory Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.38 ▲1.02 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.96 ▼7.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.87 ▲3.20 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.66 ▼7.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.83 ▲1.99 |
User Directory /wp-admin/users.php?page=mackerel-user-directory | 3.28 | 34.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mackereluserdirectory |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
mackereluserdirectory_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for User Directory Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.18 | 1.81 ▼0.02 | 44.18 ▲1.06 |
Dashboard /wp-admin | 2,213 ▲22 | 6.04 ▲0.12 | 99.61 ▼19.83 | 42.37 ▼3.22 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.01 | 36.75 ▲1.42 | 31.69 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.55 ▼4.66 | 597.57 ▼108.38 | 56.73 ▼1.83 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.03 | 99.24 ▼10.86 | 43.32 ▼4.14 |
User Directory /wp-admin/users.php?page=mackerel-user-directory | 781 | 2.03 | 24.56 | 27.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_mackereluserdirectory
- This plugin did not uninstall successfully, leaving 7 options in the database
- mackereluserdirectory_db_version
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/users.php?page=mackerel-user-directory
- > Notice in wp-content/plugins/user-directory-shortcode/mackerel-user-directory.php+61
Undefined index: save
- > GET request to /wp-admin/users.php?page=mackerel-user-directory
- > Notice in wp-content/plugins/user-directory-shortcode/mackerel-user-directory.php+88
Undefined index: new
- > GET request to /wp-admin/users.php?page=mackerel-user-directory
- > Notice in wp-content/plugins/user-directory-shortcode/mackerel-user-directory.php+121
Undefined index: load
- > GET request to /wp-admin/users.php?page=mackerel-user-directory
- > Notice in wp-content/plugins/user-directory-shortcode/mackerel-user-directory.php+163
Undefined index: update
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/user-directory-shortcode/mackerel-user-directory.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== user-directory-shortcode ===
)
user-directory-shortcode/mackerel-user-directory.php 85% from 13 tests
The main PHP script in "User Directory Shortcode" version 0.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("user-directory-shortcode.php" instead of "mackerel-user-directory.php")
- Description: Keep the plugin description shorter than 140 characters (currently 223 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected578 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 66 | 109 | 363 |
PHP | 1 | 8 | 38 | 215 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin