93% advance-mailchimp-for-wplms

Code Review | Advance mailchimp for WPLMS

WordPress plugin Advance mailchimp for WPLMS scored 93% from 54 tests.

About plugin

  • Plugin page: advance-mailchimp...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.2
  • WordPress version: 5.9.2
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: shiv_nbt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 967 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼312.03ms] Passed 4 tests

An overview of server-side resources used by Advance mailchimp for WPLMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.88 ▲5.48
Dashboard /wp-admin3.41 ▲0.0137.26 ▲3.22
Posts /wp-admin/edit.php3.65 ▲0.0138.04 ▲1.41
Add New Post /wp-admin/post-new.php3.23 ▼3.7430.45 ▼1,251.32
Media Library /wp-admin/upload.php3.30 ▲0.0024.08 ▼1.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advance mailchimp for WPLMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.04 ▲0.366.07 ▼0.512.49 ▲0.29
Dashboard /wp-admin2,895 ▲416.12 ▼0.05117.46 ▼18.22155.34 ▼3.67
Posts /wp-admin/edit.php2,694 ▲33.36 ▲0.1264.67 ▲0.19142.99 ▼1.36
Add New Post /wp-admin/post-new.php1,690 ▼8918.33 ▼3.11408.28 ▼60.95155.63 ▼3.32
Media Library /wp-admin/upload.php1,698 ▲35.55 ▲0.07143.77 ▲7.63187.83 ▲2.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-mailchimp-for-wplms/advance-mailchimp-for-WPLMS.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (MailChimp options screen.), #2 (MailChimp list option for course options screen.)
You can take inspiration from this readme.txt

advance-mailchimp-for-wplms/advance-mailchimp-for-WPLMS.php 62% from 13 tests

This is the main PHP file of "Advance mailchimp for WPLMS" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("advance-mailchimp-for-wplms.php" instead of "advance-mailchimp-for-WPLMS.php")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin670 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3156185594
Markdown142076

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity40.50
▷ Minimum class complexity22.00
▷ Maximum class complexity59.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png103.11KB45.32KB▼ 56.05%
screenshot-2.png10.01KB6.43KB▼ 35.80%