83% advance-mailchimp-for-wplms

Code Review | Advance mailchimp for WPLMS

WordPress plugin Advance mailchimp for WPLMS scored83%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: 6.3.1
  • 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 /1,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.70MB] [CPU: ▼18.01ms] 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.47 ▲0.0039.10 ▲2.28
Dashboard /wp-admin3.31 ▲0.0144.79 ▼1.76
Posts /wp-admin/edit.php3.36 ▲0.0042.73 ▼4.58
Add New Post /wp-admin/post-new.php3.09 ▼2.7936.81 ▼67.96
Media Library /wp-admin/upload.php3.23 ▲0.0033.75 ▲2.81

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Advance mailchimp for WPLMS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.261.77 ▲0.0542.23 ▲0.45
Dashboard /wp-admin2,198 ▲175.62 ▼0.0086.95 ▼16.6337.25 ▼7.04
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0536.29 ▼6.6930.15 ▼6.12
Add New Post /wp-admin/post-new.php1,531 ▲523.34 ▲0.23654.23 ▲30.1350.85 ▲1.82
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0497.11 ▲0.1540.92 ▼1.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix 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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 80% 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (MailChimp options screen.), #2 (MailChimp list option for course options screen.)
Please take inspiration from this readme.txt

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

The main PHP script in "Advance mailchimp for WPLMS" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Main file name: The principal plugin file should be 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")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: The description should be shorter than 140 characters (currently 145 characters long)

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
No dangerous file extensions were detected670 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3156185594
Markdown142076

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%