10% users2mailchimp

Code Review | Users2MailChimp

WordPress plugin Users2MailChimp scored10%from 54 tests.

About plugin

  • Plugin page: users2mailchimp
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.3
  • WordPress version: 6.3.1
  • First release: May 8, 2013
  • Latest release: Oct 2, 2019
  • Number of updates: 30
  • Update frequency: every 78.0 days
  • Top authors: eggemplo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,923 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/users2mailchimp/API/MCAPI.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MCAPI has a deprecated constructor

Server metrics [RAM: ▼1.26MB] [CPU: ▼55.54ms] Passed 4 tests

An overview of server-side resources used by Users2MailChimp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.745.70 ▼43.42
Dashboard /wp-admin2.75 ▼0.567.62 ▼44.00
Posts /wp-admin/edit.php2.75 ▼0.616.89 ▼45.64
Add New Post /wp-admin/post-new.php2.75 ▼3.146.96 ▼89.09
Media Library /wp-admin/upload.php2.75 ▼0.497.53 ▼30.86
Users2MailChimp /wp-admin/users.php?page=users2mailchimp2.757.88

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
u2mc-accept
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Users2MailChimp: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.68 ▼0.701.54 ▼0.4740.25 ▼3.64
Dashboard /wp-admin2,207 ▲165.84 ▼0.10111.52 ▲1.9240.32 ▼3.76
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0137.10 ▼1.6732.46 ▼1.85
Add New Post /wp-admin/post-new.php1,535 ▲2123.43 ▲5.74630.28 ▼25.9585.34 ▲3.08
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.06100.66 ▼20.9446.87 ▲1.66
Users2MailChimp /wp-admin/users.php?page=users2mailchimp9492.0226.5731.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/users2mailchimp/API/MCAPI.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MCAPI has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • u2mc-accept

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/users.php?page=users2mailchimp
    • > Deprecated in wp-content/plugins/users2mailchimp/API/MCAPI.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; MCAPI has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=users2mailchimp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=users2mailchimp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=users2mailchimp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=users2mailchimp
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× 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/users2mailchimp/class-users2mailchimp.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/users2mailchimp/extensions/wordpress-users2mailchimp.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/users2mailchimp/class-users2mailchimp.php:31
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/users2mailchimp/users2mailchimp.php on line 35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === users2mailchimp === )
  • Screenshots: These screenshots do not have images: #1 (Admin - setup page.), #2 (MailChimp - MailChimp group list.)
The official readme.txt is a good inspiration

users2mailchimp/users2mailchimp.php Passed 13 tests

The main file in "Users2MailChimp" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Connect wordpress users to MailChimp

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,312 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43032,0341,263
PO File1172049

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity25.25
▷ Minimum class complexity5.00
▷ Maximum class complexity64.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods127
▷ Static methods1612.60%
▷ Public methods127100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png86.55KB31.41KB▼ 63.72%
screenshot-2.png85.23KB31.71KB▼ 62.79%