Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.21ms] Passed 4 tests
A check of server-side resources used by Admin User Messages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.47 ▲5.10 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.00 ▼7.84 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.69 ▲2.39 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.11 ▼19.06 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.06 ▼0.34 |
Admin User Messages /wp-admin/options-general.php?page=testsettings | 3.37 | 31.84 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_admin_user_message_settings |
wp_admin_user_message |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Admin User Messages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.24 ▼1.35 | 4.67 ▲2.90 | 46.63 ▲6.13 |
Dashboard /wp-admin | 2,215 ▲30 | 5.84 ▲0.02 | 110.41 ▼4.72 | 36.59 ▼9.60 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▲0.02 | 39.22 ▲0.25 | 34.12 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.36 ▲0.19 | 653.64 ▼24.96 | 45.24 ▼6.66 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▲0.01 | 93.70 ▼14.62 | 42.65 ▼3.00 |
Admin User Messages /wp-admin/options-general.php?page=testsettings | 680 | 1.14 | 6.46 | 15.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_admin_user_message_settings
- wp_admin_user_message
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=testsettings
- > Error in wp-content/plugins/admin-user-messages/admin_user_messages_settings.php+10
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/admin-user-messages/admin_user_messages_settings.php:10
Stack trace:
#0 wp-content/plugins/admin-user-messages/admin_user_messages_functions.php(245): include()
#1 wp-includes/class-wp-hook.php(310): admin_user_msg2()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 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
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_inbox.php:262
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_search.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_answer_message.php:261
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_sent_messages.php:249
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_read_message.php:151
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/admin-user-messages/admin_user_messages_settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_write_message.php:271
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/admin-user-messages/admin_user_messages_settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/admin-user-messages/admin_user_messages.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Translate the plugin into your language), #2 (Write E-Mails to your users.), #3 (Receive E-Mails from your users)
- Requires at least: Version format is invalid
admin-user-messages/admin_user_messages.php 92% from 13 tests
The main PHP script in "Admin User Messages" version 0.1.6 is automatically included on every request by 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 ("admin-user-messages.php" instead of "admin_user_messages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,357 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 651 | 70 | 1,341 |
CSS | 1 | 3 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 11 | |
▷ Named functions | 11 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.83MB with 0.50MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 352.90KB | 152.30KB | ▼ 56.84% |
screenshot-1.png | 222.77KB | 74.13KB | ▼ 66.72% |
screenshot-2.png | 269.94KB | 116.76KB | ▼ 56.75% |