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.07MB] [CPU: ▲0.80ms] Passed 4 tests
This is a short check of server-side resources used by CampaignPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.61 ▲3.57 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.64 ▲0.95 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.84 ▲6.07 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.60 ▼7.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.45 ▲6.04 |
– Settings /wp-admin/options-general.php?page=orchestrated_campaignpress_settings | 3.27 | 35.71 |
CampaignPress /wp-admin/options-general.php?page=orchestrated_campaignpress_general | 3.27 | 36.86 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 206 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
orchestrated_campaignpress_version |
orchestrated_campaignpress_toast_messages |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CampaignPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲260 | 16.29 ▲1.91 | 1.89 ▲0.20 | 42.71 ▼4.24 |
Dashboard /wp-admin | 2,371 ▲180 | 7.16 ▲2.25 | 143.87 ▲42.24 | 41.02 ▼0.43 |
Posts /wp-admin/edit.php | 2,423 ▲334 | 4.57 ▲2.60 | 62.06 ▲27.22 | 35.13 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,698 ▲161 | 23.01 ▲4.79 | 688.82 ▲77.36 | 33.52 ▼16.66 |
Media Library /wp-admin/upload.php | 1,566 ▲181 | 4.96 ▲0.58 | 91.25 ▼12.12 | 40.57 ▼0.50 |
– Settings /wp-admin/options-general.php?page=orchestrated_campaignpress_settings | 1,149 | 6.09 | 144.92 | 27.29 |
CampaignPress /wp-admin/options-general.php?page=orchestrated_campaignpress_general | 1,173 | 6.12 | 63.07 | 31.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- orchestrated_campaignpress_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- orchestrated_campaignpress_toast_messages
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/campaignpress/vendor/guzzlehttp/promises/src/CancellationException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MailchimpTransactional\\Configuration' not found in wp-content/plugins/campaignpress/vendor/mailchimp/transactional/lib/ApiClient.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_settings
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Failed to resolve directive: scroll" "\n" " at \u003CSettingsViewFree" "key=1" ">" "\n" " at \u003CAppFree>
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_settings
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Property \"panelScrolled\" was accessed during render but is not defined on instance." "\n" " at \u003CSettingsViewFree" "key=1" ">" "\n" " at \u003CAppFree>
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_settings
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Invalid prop: type check failed for prop \"settings\". Expected Object, got Null " "\n" " at \u003CSettingsPanelGeneral" "class=\"\"" "onUpdate=fn\u003Cbound panelGeneralUpdated>" "onRemoveTemplates=fn\u003Cbound panelGeneralRemoveTemplatesClicked>" " ..." ">" "\n" " at \u003CSettingsViewFree" "key=1" ">" "\n" " at \u003CAppFree>
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_settings
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Failed to resolve component: loading-indicator\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." "\n" " at \u003CSettingsPanelGeneral" "class=\"\"" "onUpdate=fn\u003Cbound panelGeneralUpdated>" "onRemoveTemplates=fn\u003Cbound panelGeneralRemoveTemplatesClicked>" " ..." ">" "\n" " at \u003CSettingsViewFree" "key=1" ">" "\n" " at \u003CAppFree>
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_general
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Failed to mount app: mount target selector \"#campaignpress-metabox\" returned null.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_general
- > Network (severe)
wp-json/campaignpress/v1/settings - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_general
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Invalid prop: type check failed for prop \"audienceSettings\". Expected Object, got Null " "\n" " at \u003CGeneralPanelContextHelp" "tab=\"guided_setup_step_intro_1\"" "audience-settings=null" "plugin-root-dir=null" ">" "\n" " at \u003CGuidedSetupViewFree" "key=2" ">" "\n" " at \u003CAppFree>
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_general
- > Console-api (warning) in wp-content/plugins/campaignpress//js/dist/app.js?ver=1.0+2:20
[Vue warn]: Invalid prop: type check failed for prop \"pluginRootDir\". Expected String with value \"null\", got Null " "\n" " at \u003CGeneralPanelContextHelp" "tab=\"guided_setup_step_intro_1\"" "audience-settings=null" "plugin-root-dir=null" ">" "\n" " at \u003CGuidedSetupViewFree" "key=2" ">" "\n" " at \u003CAppFree>
- > GET request to /wp-admin/options-general.php?page=orchestrated_campaignpress_general
- > Network (severe)
wp-admin/null/js/dist/thumbnail-setup.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: campaign, mailchimp, mailchimp campaign, send mailchimp, merge tags
campaignpress/orchestrated-campaignpress.php 77% from 13 tests
"CampaignPress" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("campaignpress.php" instead of "orchestrated-campaignpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected19,630 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 2,970 | 7,889 | 12,787 |
Markdown | 20 | 1,408 | 0 | 4,051 |
CSS | 3 | 407 | 153 | 1,425 |
JSON | 13 | 2 | 0 | 1,223 |
Bourne Shell | 2 | 17 | 8 | 42 |
JavaScript | 2 | 6 | 28 | 40 |
HTML | 2 | 1 | 0 | 25 |
XML | 1 | 1 | 0 | 20 |
YAML | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 102 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 102 | 100.00% |
▷ Final classes | 35 | 34.31% |
Methods | 993 | |
▷ Static methods | 158 | 15.91% |
▷ Public methods | 824 | 82.98% |
▷ Protected methods | 4 | 0.40% |
▷ Private methods | 165 | 16.62% |
Functions | 155 | |
▷ Named functions | 36 | 23.23% |
▷ Anonymous functions | 119 | 76.77% |
Constants | 64 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 64 | 100.00% |
▷ Public constants | 53 | 82.81% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/menu_icon.png | 0.63KB | 0.43KB | ▼ 31.73% |