Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.98MB] [CPU: ▼335.91ms] Passed 4 tests
Server-side resources used by 10CentMail
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.39 ▼1.12 | 8.88 ▼42.12 |
Dashboard /wp-admin | 2.41 ▼0.99 | 9.96 ▼23.24 |
Posts /wp-admin/edit.php | 2.41 ▼1.22 | 8.54 ▼27.25 |
Add New Post /wp-admin/post-new.php | 2.41 ▼4.58 | 7.77 ▼1,251.03 |
Media Library /wp-admin/upload.php | 2.41 ▼0.89 | 120.66 ▲93.12 |
10CentMail /wp-admin/options-general.php?page=tencentmail_settings | 2.42 | 7.70 |
Server storage [IO: ▲0.41MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 63 new files
Database: 6 new tables, no new options
New tables |
---|
wp_tencent_sns_message |
wp_tencent_contact_lists |
wp_tencent_subscribe |
wp_tencent_settings |
wp_tencent_tracking |
wp_tencent_contact_list_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 10CentMail
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,895 ▲141 | 15.82 ▲0.07 | 6.00 ▼0.56 | 2.45 ▲0.08 |
Dashboard /wp-admin | 2,944 ▲90 | 6.13 ▼0.05 | 131.73 ▼5.58 | 154.36 ▼3.35 |
Posts /wp-admin/edit.php | 2,743 ▲55 | 3.24 ▼0.00 | 61.50 ▲0.92 | 143.67 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,628 ▼33 | 16.90 ▲0.59 | 320.04 ▼110.21 | 163.90 ▲1.68 |
Media Library /wp-admin/upload.php | 1,751 ▲56 | 5.54 ▲0.01 | 136.91 ▼6.47 | 181.26 ▼13.17 |
10CentMail /wp-admin/options-general.php?page=tencentmail_settings | 3,589 | 12.07 | 221.15 | 165.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > 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
- Zombie tables detected upon uninstall: 6 tables
- wp_tencent_subscribe
- wp_tencent_contact_list_settings
- wp_tencent_settings
- wp_tencent_tracking
- wp_tencent_contact_lists
- wp_tencent_sns_message
Smoke tests 50% 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
- 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+5768
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+5768
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 13× PHP files trigger errors when accessed directly with GET requests (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/StringLengthValidator.php:3
- > 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/NotEmptyValidator.php:3
- > PHP Notice
Undefined index: list in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/unsubscribe_form.php on line 3
- > PHP Notice
Undefined index: campaignId in wp-content/plugins/10centmail-subscription-management-and-analytics/actions/unsubscribe_form.php on line 4
- > 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/UrlValidator.php:10
- > 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 Fatal error
Uncaught Error: Interface 'IValidator' not found in wp-content/plugins/10centmail-subscription-management-and-analytics/validation/validators/impl/NoSpecialCharactersValidator.php:3
- > 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 93% 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 require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== 10centmail-subscription-management-and-analytics ===
)
10centmail-subscription-management-and-analytics/TenCent.php 92% from 13 tests
This is the main PHP file of "10CentMail" version 2.1.50, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- 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 a short overview of programming languages used in this plugin, detecting executable files
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
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic 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-pre.png | 10.83KB | 4.51KB | ▼ 58.37% |
resources/images/tencentmail-icon.png | 1.73KB | 0.84KB | ▼ 51.47% |
resources/images/test.png | 2.99KB | 0.10KB | ▼ 96.77% |
resources/images/contact-list-settings.png | 55.29KB | 18.77KB | ▼ 66.06% |
resources/images/shortcode-generator.png | 62.26KB | 20.43KB | ▼ 67.19% |