89% convertkit-membermouse

Code Review | ConvertKit MemberMouse Integration

WordPress plugin ConvertKit MemberMouse Integration scored 89% from 54 tests.

About plugin

  • Plugin page: convertkit-member...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: May 1, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: travisnorthcutt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 554 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ConvertKit MemberMouse Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.58 ▲2.89
Dashboard /wp-admin3.34 ▲0.0358.51 ▼1.32
Posts /wp-admin/edit.php3.39 ▲0.0363.18 ▲9.68
Add New Post /wp-admin/post-new.php5.92 ▲0.03103.81 ▲2.73
Media Library /wp-admin/upload.php3.26 ▲0.0341.11 ▲1.24
ConvertKit MemberMouse /wp-admin/options-general.php?page=convertkit-mm3.2338.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ConvertKit MemberMouse Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.24 ▼1.571.87 ▲0.0645.18 ▼3.80
Dashboard /wp-admin2,210 ▲14.87 ▼0.98109.72 ▲10.2641.42 ▲1.52
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0241.17 ▲0.5137.64 ▼0.62
Add New Post /wp-admin/post-new.php1,552 ▲3818.41 ▲0.90628.38 ▼131.5455.18 ▼7.47
Media Library /wp-admin/upload.php1,395 ▲104.21 ▲0.0095.97 ▼23.9643.50 ▼3.53
ConvertKit MemberMouse /wp-admin/options-general.php?page=convertkit-mm8372.0322.3629.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (ConvertKit MemberMouse settings page)
The official readme.txt is a good inspiration

convertkit-membermouse/convertkit-membermouse.php 85% from 13 tests

The main file in "ConvertKit MemberMouse Integration" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin439 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10210552438
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3489.47%
▷ Protected methods00.00%
▷ Private methods410.53%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.18MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png188.85KB48.85KB▼ 74.13%