Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/mailsystem/include/MailsystemApiClient.php+13
Undefined index: token
Server metrics [RAM: ▼1.90MB] [CPU: ▼57.56ms] Passed 4 tests
This is a short check of server-side resources used by Mailsystem
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 7.87 ▼37.21 |
Dashboard /wp-admin | 2.11 ▼1.20 | 8.01 ▼47.30 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.17 ▼45.54 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.35 ▼100.18 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.49 ▼35.93 |
Settings /wp-admin/admin.php?page=mailsystem_settings | 2.11 | 7.43 |
Letters /wp-admin/admin.php?page=mailsystem_letters | 2.11 | 7.02 |
Statistics /wp-admin/admin.php?page=mailsystem_statistics | 2.11 | 6.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
mailsystem_options |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Mailsystem: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.25 ▼0.10 | 1.86 ▼0.28 | 42.07 ▼4.70 |
Dashboard /wp-admin | 2,226 ▲52 | 5.56 ▼0.09 | 83.48 ▼14.90 | 37.41 ▼6.72 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.00 | 36.82 ▼5.23 | 30.55 ▼7.33 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.58 ▲0.46 | 671.15 ▼1.85 | 51.58 ▼11.95 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.18 ▼0.07 | 96.87 ▼17.68 | 39.60 ▼8.30 |
Settings /wp-admin/admin.php?page=mailsystem_settings | 863 | 2.03 | 26.47 | 28.04 |
Letters /wp-admin/admin.php?page=mailsystem_letters | 880 | 2.03 | 24.40 | 29.12 |
Statistics /wp-admin/admin.php?page=mailsystem_statistics | 802 | 2.00 | 25.32 | 28.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/mailsystem/include/MailsystemApiClient.php+13
Undefined index: token
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- mailsystem_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailsystem_statistics
- > Notice in wp-content/plugins/mailsystem/include/MailsystemApiClient.php+13
Undefined index: token
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailsystem_statistics
- > Notice in wp-content/plugins/mailsystem/include/MailsystemAdminMenu.php+122
Trying to get property 'data' of non-object
- > GET request to /wp-admin/admin.php?page=mailsystem_letters
- > Notice in wp-content/plugins/mailsystem/include/MailsystemAdminMenu.php+86
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mailsystem/views/admin_mailsystem_statistics.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mailsystem/views/admin_mailsystem_settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailsystem/mailsystem.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mailsystem/views/admin_mailsystem_letters.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: mailing, import, post, export, mail...
mailsystem/mailsystem.php Passed 13 tests
The main PHP file in "Mailsystem" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
mailsystem integration with wordpress
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
Success! There were no dangerous files found in this plugin400 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 48 | 76 | 400 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 1 | 5.26% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin