Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.91MB] [CPU: ▼48.31ms] Passed 4 tests
A check of server-side resources used by 10CentMail
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 7.81 ▼33.28 |
Dashboard /wp-admin | 2.10 ▼1.20 | 8.63 ▼38.17 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 8.54 ▼40.24 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 8.05 ▼81.56 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 8.75 ▼23.08 |
10CentMail /wp-admin/options-general.php?page=tencentmail_settings | 2.10 | 9.62 |
Server storage [IO: ▲0.41MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_tencent_sns_message |
wp_tencent_contact_list_settings |
wp_tencent_contact_lists |
wp_tencent_subscribe |
wp_tencent_settings |
wp_tencent_tracking |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
10CentMail: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 13.30 ▼1.08 | 5.39 ▲3.73 | 43.71 ▼2.94 |
Dashboard /wp-admin | 2,228 ▲43 | 4.86 ▼1.02 | 104.72 ▼1.07 | 39.95 ▼1.63 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.98 ▼0.05 | 40.87 ▲3.75 | 36.04 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,388 ▼145 | 20.79 ▼2.40 | 555.45 ▼85.39 | 161.26 ▲102.36 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.20 ▲0.04 | 106.90 ▲8.30 | 42.08 ▼3.34 |
10CentMail /wp-admin/options-general.php?page=tencentmail_settings | 2,932 | 10.43 | 212.02 | 49.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/10centmail-subscription-management-and-analytics/TenCentDao.php+573
sizeof(): Parameter must be an array or an object that implements Countable
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_tencent_sns_message
- wp_tencent_subscribe
- wp_tencent_tracking
- wp_tencent_settings
- wp_tencent_contact_lists
- wp_tencent_contact_list_settings
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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)
These server-side errors were triggered
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tencentmail_settings
- > Warning in wp-content/plugins/10centmail-subscription-management-and-analytics/TenCentDao.php+573
sizeof(): Parameter must be an array or an object that implements Countable
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tencentmail_settings
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tencentmail_settings
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
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 take a closer look at the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/UrlValidator.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function tencentmail_endpoints_metadata() in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/debug.php:6
- > PHP Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/IPAddressValidator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/10centmail-subscription-management-and-analytics/TenCentRequest.php:56
- > PHP Notice
Undefined index: list in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/unsubscribe_form.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/FullUrlValidator.php:10
- > PHP Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/NotEmptyValidator.php:3
- > PHP Notice
Undefined index: email in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/unsubscribe_form.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'TenCentDao' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/unsubscribe_form.php:9
- > PHP Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/StringLengthValidator.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== 10centmail-subscription-management-and-analytics ===
)
10centmail-subscription-management-and-analytics/TenCent.php 92% from 13 tests
The main PHP file in "10CentMail" ver. 2.1.50 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("10centmail-subscription-management-and-analytics.php" instead of "TenCent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,104 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 777 | 543 | 3,383 |
XML | 17 | 0 | 0 | 1,193 |
CSS | 3 | 60 | 5 | 345 |
HTML | 1 | 95 | 3 | 183 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 94 | 60.65% |
▷ Public methods | 114 | 73.55% |
▷ Protected methods | 26 | 16.77% |
▷ Private methods | 15 | 9.68% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 4 | 10.53% |
▷ Class constants | 34 | 89.47% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/img/form-post.png | 12.63KB | 6.44KB | ▼ 49.02% |
resources/images/contact-list-settings.png | 55.29KB | 18.77KB | ▼ 66.06% |
resources/images/production.png | 2.73KB | 0.08KB | ▼ 97.06% |
resources/images/shortcode-generator.png | 62.26KB | 20.43KB | ▼ 67.19% |
resources/images/base-settings.png | 57.74KB | 18.53KB | ▼ 67.90% |