Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼140.09ms] Passed 4 tests
An overview of server-side resources used by DB - Mailchimp API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.28 | 47.83 ▲23.36 |
Dashboard /wp-admin | 3.32 ▲0.27 | 45.87 ▼1.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.26 | 47.18 ▲8.65 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.18 | 97.49 ▼568.37 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 36.73 ▲0.71 |
Lists /wp-admin/admin.php?page=dbmc&tab=lists_tab | 3.18 | 28.85 |
Settings /wp-admin/admin.php?page=dbmc&tab=settings_tab | 3.18 | 32.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dbmc_settings |
Browser metrics Passed 4 tests
Checking browser requirements for DB - Mailchimp API
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.83 ▲0.30 | 8.78 ▲0.26 | 53.02 ▲4.94 |
Dashboard /wp-admin | 3,007 ▲76 | 5.94 ▼0.11 | 139.21 ▼18.15 | 112.59 ▼2.25 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▲0.00 | 69.81 ▲1.13 | 91.25 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,705 ▲101 | 16.66 ▼2.20 | 404.40 ▼4.57 | 110.72 ▼8.73 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.01 ▼0.00 | 160.71 ▼9.67 | 120.26 ▼5.55 |
Lists /wp-admin/admin.php?page=dbmc&tab=lists_tab | 1,260 | 2.09 | 61.75 | 78.99 |
Settings /wp-admin/admin.php?page=dbmc&tab=settings_tab | 1,142 | 2.09 | 63.18 | 78.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- dbmc_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/db-mailchimp-api/admin/partials/dbmc-meta-box-display.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/db-mailchimp-api/admin/partials/dbmc-admin-display.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: wp wrapper api, mailchimp
db-mailchimp-api/dbmc.php 85% from 13 tests
"DB - Mailchimp API" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("db-mailchimp-api.php" instead of "dbmc.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin732 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 461 | 477 | 732 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 9 | 12.86% |
▷ Public methods | 52 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 25.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin