WordPress plugin 10CentMail scored58%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: 6.3.1
  • 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,559 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.387.81 ▼33.28
Dashboard /wp-admin2.10 ▼1.208.63 ▼38.17
Posts /wp-admin/edit.php2.10 ▼1.268.54 ▼40.24
Add New Post /wp-admin/post-new.php2.10 ▼3.798.05 ▼81.56
Media Library /wp-admin/upload.php2.10 ▼1.138.75 ▼23.08
10CentMail /wp-admin/options-general.php?page=tencentmail_settings2.109.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.30 ▼1.085.39 ▲3.7343.71 ▼2.94
Dashboard /wp-admin2,228 ▲434.86 ▼1.02104.72 ▼1.0739.95 ▼1.63
Posts /wp-admin/edit.php2,123 ▲371.98 ▼0.0540.87 ▲3.7536.04 ▼0.86
Add New Post /wp-admin/post-new.php1,388 ▼14520.79 ▼2.40555.45 ▼85.39161.26 ▲102.36
Media Library /wp-admin/upload.php1,413 ▲224.20 ▲0.04106.90 ▲8.3042.08 ▼3.34
10CentMail /wp-admin/options-general.php?page=tencentmail_settings2,93210.43212.0249.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

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

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No 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-post.png12.63KB6.44KB▼ 49.02%
resources/images/contact-list-settings.png55.29KB18.77KB▼ 66.06%
resources/images/production.png2.73KB0.08KB▼ 97.06%
resources/images/shortcode-generator.png62.26KB20.43KB▼ 67.19%
resources/images/base-settings.png57.74KB18.53KB▼ 67.90%