84% wp-mail2xmpp

Code Review | wp_mail to XMPP

WordPress plugin wp_mail to XMPP scored 84% from 54 tests.

About plugin

  • Plugin page: wp-mail2xmpp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Dec 9, 2015
  • Number of updates: 12
  • Update frequency: every 59.3 days
  • Top authors: mako09 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,302 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.21 ▼7.65
Dashboard /wp-admin3.32 ▲0.0241.52 ▼10.46
Posts /wp-admin/edit.php3.37 ▲0.0246.21 ▼1.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.24 ▼8.59
Media Library /wp-admin/upload.php3.24 ▲0.0232.17 ▼3.45
wp_mail to XMPP /wp-admin/plugins.php?page=wp-mail2xmpp/wp-mail2xmpp.php3.2125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.241.56 ▼0.3237.13 ▼5.79
Dashboard /wp-admin2,213 ▲254.86 ▼0.98111.04 ▼5.6041.16 ▼1.93
Posts /wp-admin/edit.php2,090 ▼22.01 ▼0.0435.64 ▼1.6034.18 ▼0.17
Add New Post /wp-admin/post-new.php1,517 ▼2117.39 ▼6.19659.89 ▲32.4577.09 ▲26.85
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0695.37 ▲0.7141.43 ▼2.80
wp_mail to XMPP /wp-admin/plugins.php?page=wp-mail2xmpp/wp-mail2xmpp.php7592.1525.9724.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP22772120
PO File1121451

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 code0.30
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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