Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼1.05ms] Passed 4 tests
This is a short check of server-side resources used by WP Mailto Links - Protect Email Addresses
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 45.00 ▼0.10 |
Dashboard /wp-admin | 3.67 ▲0.37 | 51.16 ▼3.51 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.30 ▼1.68 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 96.27 ▲2.26 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.28 ▲1.11 |
WP Mailto Links /wp-admin/options-general.php?page=wp-mailto-links-option-page | 3.54 | 37.77 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
wp-mailto-links-version |
wp-mailto-links |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mailto Links - Protect Email Addresses
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.40 ▼1.19 | 9.71 ▲7.97 | 44.10 ▼1.39 |
Dashboard /wp-admin | 2,193 ▲16 | 5.59 ▲0.02 | 91.68 ▼0.41 | 44.74 ▼0.31 |
Posts /wp-admin/edit.php | 2,107 ▼0 | 2.03 ▲0.02 | 39.68 ▼2.18 | 35.96 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.25 ▲4.96 | 647.49 ▲20.97 | 49.22 ▼18.90 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.05 | 109.39 ▲0.14 | 49.10 ▲4.45 |
WP Mailto Links /wp-admin/options-general.php?page=wp-mailto-links-option-page | 1,650 | 1.82 | 27.84 | 31.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-posts
- wp-mailto-links-version
- wp-mailto-links
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WPMT() in wp-content/plugins/wp-mailto-links/core/includes/partials/help-tabs/template-tags.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-mailto-links/core/includes/partials/widgets/sidebar.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/wp-mailto-links/core/includes/partials/help-tabs/general.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function WPMT() in wp-content/plugins/wp-mailto-links/core/includes/partials/widgets/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/wp-mailto-links/core/includes/partials/wpmt-page-display.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function WPMT() in wp-content/plugins/wp-mailto-links/core/includes/partials/help-tabs/shortcodes.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-mailto-links/wp-mailto-links.php Passed 13 tests
This is the main PHP file of "WP Mailto Links - Protect Email Addresses" version 3.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
Protect & encode email addresses and mailto links from spambots & spamming. Easy to use - encodes emails out-of-the-box.
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
Success! There were no dangerous files found in this plugin1,898 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 541 | 911 | 1,792 |
JavaScript | 2 | 25 | 16 | 65 |
CSS | 2 | 2 | 0 | 27 |
PO File | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.56 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 99 | |
▷ Static methods | 1 | 1.01% |
▷ Public methods | 92 | 92.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.07% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/includes/assets/img/icon-email-encoder-bundle.png | 1.32KB | 1.45KB | 0.00% |
core/includes/assets/img/icon-wp-webhooks.png | 11.71KB | 4.92KB | ▼ 58.02% |
core/includes/assets/img/icon-wp-snow.png | 1.60KB | 1.60KB | 0.00% |