90% fast-mailchimp

Code Review | Fast MailChimp

WordPress plugin Fast MailChimp scored90%from 54 tests.

About plugin

  • Plugin page: fast-mailchimp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 4
  • Update frequency: every 188.0 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.87ms] Passed 4 tests

This is a short check of server-side resources used by Fast MailChimp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.08 ▼2.70
Dashboard /wp-admin3.36 ▲0.0545.15 ▼8.40
Posts /wp-admin/edit.php3.47 ▲0.1143.36 ▲1.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.35 ▼6.21
Media Library /wp-admin/upload.php3.28 ▲0.0531.48 ▼2.15

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast MailChimp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.34 ▼1.034.31 ▲2.5036.25 ▼11.54
Dashboard /wp-admin2,232 ▲415.87 ▲0.06104.17 ▼5.2343.18 ▼7.33
Posts /wp-admin/edit.php2,114 ▲252.00 ▼0.0638.72 ▼2.7840.10 ▲3.51
Add New Post /wp-admin/post-new.php1,381 ▼15221.14 ▼1.98566.37 ▼68.5064.48 ▼3.12
Media Library /wp-admin/upload.php1,414 ▲294.22 ▼0.09101.64 ▼0.7445.36 ▲2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Enter your MailChimp API details in the settings page of the Fast Flow Dashboard) image required
You can take inspiration from this readme.txt

fast-mailchimp/fast-mailchimp.php Passed 13 tests

The principal PHP file in "Fast MailChimp" v. 1.0.0 is loaded by WordPress automatically on each request
34 characters long description:
Mailchimp autoreponder Integration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin202 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2319202

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.50
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected