Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/visitor-mailer/visitormailer.php+39
Undefined variable: wpdb
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.13ms] Passed 4 tests
Server-side resources used by Visitor Mailer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.08 ▼31.78 |
Dashboard /wp-admin | 2.16 ▼1.14 | 6.58 ▼44.42 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 6.26 ▼42.19 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.08 ▼98.14 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.25 ▼26.70 |
Visitor Mailer /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php | 2.16 | 6.69 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 2 new tables, 9 new options
New tables |
---|
visitormailer |
wp_visitormailer |
New WordPress options |
---|
recovery_mode_email_last_sent |
visitormailer_version |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
VISITORMAILER_VERSION_KEY |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Visitor Mailer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,460 ▼286 | 13.51 ▼1.14 | 0.48 ▼1.18 | 19.03 ▼22.76 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.96 | 110.83 ▲4.29 | 42.52 ▼7.39 |
Posts /wp-admin/edit.php | 45 ▼2,044 | 0.44 ▼1.54 | 0.08 ▼36.57 | 9.19 ▼25.17 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.15 ▲0.09 | 635.45 ▼31.06 | 64.52 ▲9.35 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.18 ▼0.01 | 96.82 ▼8.68 | 43.94 ▼1.07 |
Visitor Mailer /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php | 837 | 2.03 | 27.67 | 26.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/visitor-mailer/visitormailer.php+41
Use of undefined constant VISITORMAILER_VERSION_KEY - assumed 'VISITORMAILER_VERSION_KEY' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_visitormailer
- visitormailer
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- VISITORMAILER_VERSION_KEY
- visitormailer_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > Warning in wp-content/plugins/visitor-mailer/visitormailer.php+41
Use of undefined constant VISITORMAILER_VERSION_KEY - assumed 'VISITORMAILER_VERSION_KEY' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > Warning in wp-content/plugins/visitor-mailer/visitormailer.php+41
Use of undefined constant VISITORMAILER_VERSION_NUM - assumed 'VISITORMAILER_VERSION_NUM' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > Notice in wp-content/plugins/visitor-mailer/visitormailer.php+355
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=visitor-mailer/visitormailer.php
- > Notice in wp-content/plugins/visitor-mailer/visitormailer.php+357
Undefined variable: checked
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/visitor-mailer/visitormailer.php on line 39
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/visitor-mailer/visitormailer.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/visitor-mailer/visitormailer.php:41
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (27 tag instead of maximum 10)
visitor-mailer/visitormailer.php 92% from 13 tests
Analyzing the main PHP file in "Visitor Mailer" version 1.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visitor-mailer.php" instead of "visitormailer.php")
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
Everything looks great! No dangerous files found in this plugin262 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 79 | 262 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.05KB | 6.39KB | ▼ 68.12% |
images/stat.png | 0.53KB | 0.74KB | 0.00% |
screenshot-2.png | 12.01KB | 4.16KB | ▼ 65.39% |