79% wdv-mailchimp-ajax

Code Review | WDV MailChimp Ajax

WordPress plugin WDV MailChimp Ajax scored79%from 54 tests.

About plugin

  • Plugin page: wdv-mailchimp-ajax
  • Plugin version: 2.0.8
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: May 23, 2023
  • Number of updates: 47
  • Update frequency: every 52.5 days
  • Top authors: vrpr (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.51ms] Passed 4 tests

Server-side resources used by WDV MailChimp Ajax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.36 ▼0.94
Dashboard /wp-admin3.52 ▲0.2254.07 ▼6.90
Posts /wp-admin/edit.php3.58 ▲0.2256.53 ▲3.62
Add New Post /wp-admin/post-new.php6.04 ▲0.1694.93 ▲2.20
Media Library /wp-admin/upload.php3.37 ▲0.1442.37 ▲6.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_wdv_mailchimp_ajax
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WDV MailChimp Ajax
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,035 ▲27415.47 ▲1.125.32 ▲3.5442.60 ▼0.88
Dashboard /wp-admin2,358 ▲1786.48 ▲0.83126.61 ▲34.0939.18 ▼3.72
Posts /wp-admin/edit.php2,283 ▲1833.58 ▲1.5957.52 ▲16.4634.56 ▲0.18
Add New Post /wp-admin/post-new.php1,544 ▲1623.84 ▲0.71635.11 ▼65.3638.57 ▼17.06
Media Library /wp-admin/upload.php1,420 ▲264.40 ▲0.1685.25 ▼17.8243.09 ▼2.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_wdv_mailchimp_ajax
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wdv-mailchimp-ajax/public/partials/wdv-mailchimp-ajax-public-display.php
    • > /wp-content/plugins/wdv-mailchimp-ajax/admin/partials/wdv-mailchimp-ajax-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wdv-mailchimp-ajax/widgets/class-wdv-mailchimp-ajax-widget.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: sign up, signup form, newsletter, form, mailchimp...

wdv-mailchimp-ajax/wdv-mailchimp-ajax.php Passed 13 tests

"WDV MailChimp Ajax" version 2.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
This plugin adding widget with contact form for MailChimp using ajax

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected707 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13164574426
JavaScript25862173
CSS2148108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin