WordPress plugin 10CentMail scored 68% from 54 tests.

About plugin

  • Plugin page: 10centmail-subscr...
  • Plugin version: 2.1.50
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 5.9.2
  • First release: Apr 28, 2013
  • Latest release: Jun 28, 2013
  • Number of updates: 10
  • Update frequency: every 11.3 days
  • Top authors: carverlab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,336 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.128.88 ▼42.12
Dashboard /wp-admin2.41 ▼0.999.96 ▼23.24
Posts /wp-admin/edit.php2.41 ▼1.228.54 ▼27.25
Add New Post /wp-admin/post-new.php2.41 ▼4.587.77 ▼1,251.03
Media Library /wp-admin/upload.php2.41 ▼0.89120.66 ▲93.12
10CentMail /wp-admin/options-general.php?page=tencentmail_settings2.427.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,895 ▲14115.82 ▲0.076.00 ▼0.562.45 ▲0.08
Dashboard /wp-admin2,944 ▲906.13 ▼0.05131.73 ▼5.58154.36 ▼3.35
Posts /wp-admin/edit.php2,743 ▲553.24 ▼0.0061.50 ▲0.92143.67 ▲4.11
Add New Post /wp-admin/post-new.php1,628 ▼3316.90 ▲0.59320.04 ▼110.21163.90 ▲1.68
Media Library /wp-admin/upload.php1,751 ▲565.54 ▲0.01136.91 ▼6.47181.26 ▼13.17
10CentMail /wp-admin/options-general.php?page=tencentmail_settings3,58912.07221.15165.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP327775433,383
XML17001,193
CSS3605345
HTML1953183

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 code0.29
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods155
▷ Static methods9460.65%
▷ Public methods11473.55%
▷ Protected methods2616.77%
▷ Private methods159.68%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants38
▷ Global constants410.53%
▷ Class constants3489.47%
▷ Public constants34100.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
FileSize - originalSize - compressedSavings
doc/img/form-pre.png10.83KB4.51KB▼ 58.37%
resources/images/tencentmail-icon.png1.73KB0.84KB▼ 51.47%
resources/images/test.png2.99KB0.10KB▼ 96.77%
resources/images/contact-list-settings.png55.29KB18.77KB▼ 66.06%
resources/images/shortcode-generator.png62.26KB20.43KB▼ 67.19%