Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.54ms] Passed 4 tests
A check of server-side resources used by wp_mail to XMPP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.21 ▼7.65 |
Dashboard /wp-admin | 3.32 ▲0.02 | 41.52 ▼10.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.21 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.24 ▼8.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.17 ▼3.45 |
wp_mail to XMPP /wp-admin/plugins.php?page=wp-mail2xmpp/wp-mail2xmpp.php | 3.21 | 25.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for wp_mail to XMPP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.24 | 1.56 ▼0.32 | 37.13 ▼5.79 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.98 | 111.04 ▼5.60 | 41.16 ▼1.93 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.01 ▼0.04 | 35.64 ▼1.60 | 34.18 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,517 ▼21 | 17.39 ▼6.19 | 659.89 ▲32.45 | 77.09 ▲26.85 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.26 ▲0.06 | 95.37 ▲0.71 | 41.43 ▼2.80 |
wp_mail to XMPP /wp-admin/plugins.php?page=wp-mail2xmpp/wp-mail2xmpp.php | 759 | 2.15 | 25.97 | 24.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mail2xmpp/wp-mail2xmpp.php:50
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-mail2xmpp/wp-mail2xmpp.php Passed 13 tests
"wp_mail to XMPP" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Almost all notifications are sent via XMPP. This plugin requires "XMPP Enabled" plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin171 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 72 | 120 |
PO File | 1 | 12 | 14 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin