84% technoscore-mailchimp-subscription

Code Review | TechnoScore MailChimp Subscription

WordPress plugin TechnoScore MailChimp Subscription scored84%from 54 tests.

About plugin

  • Plugin page: technoscore-mailc...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Feb 28, 2017
  • Number of updates: 10
  • Update frequency: every 2.5 days
  • Top authors: saravan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.67ms] Passed 4 tests

An overview of server-side resources used by TechnoScore MailChimp Subscription
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0251.22 ▲7.61
Dashboard /wp-admin3.34 ▲0.0351.56 ▼3.59
Posts /wp-admin/edit.php3.39 ▲0.0347.80 ▼0.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.21 ▼13.64
Media Library /wp-admin/upload.php3.26 ▲0.0335.85 ▼4.46

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

TechnoScore MailChimp Subscription: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.41 ▲1.321.97 ▼2.1843.23 ▼1.37
Dashboard /wp-admin2,211 ▲345.56 ▼0.0789.60 ▼6.6643.66 ▼0.61
Posts /wp-admin/edit.php2,113 ▲131.98 ▲0.0135.04 ▼2.8236.24 ▼1.55
Add New Post /wp-admin/post-new.php1,539 ▲323.20 ▲0.34664.66 ▼11.6765.00 ▲8.79
Media Library /wp-admin/upload.php1,416 ▲194.20 ▲0.0195.48 ▼26.3648.02 ▼0.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/technoscore-mailchimp-subscription/techno_mailchimp.php:12

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 Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: mailchimp, register, subscribe, newsletter, registration...

technoscore-mailchimp-subscription/techno_mailchimp.php 85% from 13 tests

The primary PHP file in "TechnoScore MailChimp Subscription" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("technoscore-mailchimp-subscription.php" instead of "techno_mailchimp.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
Good job! No executable or dangerous file extensions detected945 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP41831,983945

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods111100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon1.png5.56KB2.48KB▼ 55.34%
images/icon.png1.81KB1.52KB▼ 16.31%