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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.74 | 5.70 ▼43.42 |
Dashboard /wp-admin | 2.75 ▼0.56 | 7.62 ▼44.00 |
Posts /wp-admin/edit.php | 2.75 ▼0.61 | 6.89 ▼45.64 |
Add New Post /wp-admin/post-new.php | 2.75 ▼3.14 | 6.96 ▼89.09 |
Media Library /wp-admin/upload.php | 2.75 ▼0.49 | 7.53 ▼30.86 |
Users2MailChimp /wp-admin/users.php?page=users2mailchimp | 2.75 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.68 ▼0.70 | 1.54 ▼0.47 | 40.25 ▼3.64 |
Dashboard /wp-admin | 2,207 ▲16 | 5.84 ▼0.10 | 111.52 ▲1.92 | 40.32 ▼3.76 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.01 | 37.10 ▼1.67 | 32.46 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.43 ▲5.74 | 630.28 ▼25.95 | 85.34 ▲3.08 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.06 | 100.66 ▼20.94 | 46.87 ▲1.66 |
Users2MailChimp /wp-admin/users.php?page=users2mailchimp | 949 | 2.02 | 26.57 | 31.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 303 | 2,034 | 1,263 |
PO File | 1 | 17 | 20 | 49 |
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 code | 0.14 |
Average class complexity | 25.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 16 | 12.60% |
▷ Public methods | 127 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 86.55KB | 31.41KB | ▼ 63.72% |
screenshot-2.png | 85.23KB | 31.71KB | ▼ 62.79% |