Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼305.23ms] Passed 4 tests
A check of server-side resources used by Admin User Messages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.35 ▲4.89 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.40 ▲1.30 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.34 ▲0.53 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 90.46 ▼1,222.86 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.90 ▲0.13 |
Admin User Messages /wp-admin/options-general.php?page=testsettings | 3.32 | 22.06 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_admin_user_message |
wp_admin_user_message_settings |
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by Admin User Messages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲20 | 15.85 ▲0.19 | 6.55 ▲0.20 | 2.05 ▼0.52 |
Dashboard /wp-admin | 2,899 ▲41 | 6.14 ▼0.07 | 118.39 ▼14.61 | 156.33 ▼2.80 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.22 ▼0.02 | 61.50 ▲0.93 | 140.09 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,703 ▲48 | 22.09 ▲1.90 | 395.75 ▼21.41 | 151.60 ▼4.51 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.49 ▲0.00 | 152.62 ▲11.46 | 190.07 ▲5.15 |
Admin User Messages /wp-admin/options-general.php?page=testsettings | 836 | 1.97 | 36.48 | 71.29 |
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
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_admin_user_message
- wp_admin_user_message_settings
- The uninstall procedure has failed, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > 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(307): admin_user_msg2()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): 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 | 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
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > 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 add_shortcode() in wp-content/plugins/admin-user-messages/admin_user_messages_write_message.php:271
- > 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_inbox.php:262
- > 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
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_sent_messages.php:249
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- 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: Invalid version format
admin-user-messages/admin_user_messages.php 92% from 13 tests
The main PHP file in "Admin User Messages" ver. 0.1.6 adds more information about the plugin and also serves as the entry point for this plugin
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
Success! There were no dangerous files found in this plugin1,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
An overview of cyclomatic complexity and code structure
No complexity issues 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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-2.png | 269.94KB | 116.76KB | ▼ 56.75% |
screenshot-1.png | 222.77KB | 74.13KB | ▼ 66.72% |