Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.78ms] Passed 4 tests
A check of server-side resources used by CleverReach® WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.72 ▲3.39 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.20 ▲2.89 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 54.61 ▲12.04 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.15 ▲0.77 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.49 ▲4.07 |
Server storage [IO: ▲8.68MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 392 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_cleverreach_entity |
wp_cleverreach_queue |
wp_cleverreach_process |
wp_cleverreach_config |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CleverReach® WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.77 ▼0.85 | 1.84 ▲0.19 | 39.43 ▼4.81 |
Dashboard /wp-admin | 2,222 ▲33 | 5.79 ▲0.88 | 105.98 ▼11.81 | 36.41 ▼9.31 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.01 | 41.02 ▲6.48 | 34.93 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 17.68 ▲0.04 | 671.38 ▲2.93 | 55.29 ▼9.24 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.28 ▲0.07 | 96.82 ▼0.04 | 41.58 ▼4.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/cleverreach-wp/resources/views/wrapper-end.php
- > /wp-content/plugins/cleverreach-wp/resources/views/recaptcha.php
- > /wp-content/plugins/cleverreach-wp/resources/views/wrapper-start.php
- > /wp-content/plugins/cleverreach-wp/tests/bootstrap.php
- 166× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Sync\\InitialSyncTask' not found in wp-content/plugins/cleverreach-wp/Components/Sync/class-initial-sync-task.php:17
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\Components\\Utility\\Database' not found in wp-content/plugins/cleverreach-wp/resources/views/register-form-newsletter.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cleverreach-wp/resources/views/signup-form-tag-settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Sync\\BaseSyncTask' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/BusinessLogic/Sync/RefreshUserInfoTask.php:13
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Sync\\BaseSyncTask' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/BusinessLogic/Sync/CampaignOrderSync.php:15
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Sync\\BaseSyncTask' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/BusinessLogic/Sync/SendDoiEmailsTask.php:16
- > PHP Fatal error
Uncaught Error: Interface 'CleverReach\\WordPress\\IntegrationCore\\Infrastructure\\Interfaces\\Exposed\\TaskRunnerStatusStorage' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/Infrastructure/TaskExecution/TaskRunnerStatusStorage.php:16
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\Infrastructure\\Exceptions\\BaseException' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/Infrastructure/TaskExecution/Exceptions/ProcessStorageGetException.php:12
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Scheduler\\Models\\Schedule' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/BusinessLogic/Scheduler/Models/HourlySchedule.php:10
- > PHP Fatal error
Uncaught Error: Class 'CleverReach\\WordPress\\IntegrationCore\\BusinessLogic\\Utility\\ArticleSearch\\Schema\\SchemaAttribute' not found in wp-content/plugins/cleverreach-wp/vendor/cleverreach/integration-core/src/BusinessLogic/Utility/ArticleSearch/Schema/ComplexSchemaAttribute.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
9 plugin tags: newsletter, email automation, email, follow up newsletter, integration...
cleverreach-wp/cleverreach-wp.php 92% from 13 tests
The entry point to "CleverReach® WP" version 1.5.20 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 166 characters long)
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
There were no executable files found in this plugin33,699 lines of code in 332 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 273 | 3,881 | 13,913 | 16,470 |
CSS | 5 | 252 | 15 | 7,760 |
PO File | 18 | 1,437 | 2,577 | 3,935 |
JavaScript | 25 | 619 | 854 | 2,752 |
SVG | 3 | 0 | 1 | 2,143 |
Markdown | 1 | 81 | 0 | 458 |
JSON | 3 | 0 | 0 | 126 |
XML | 2 | 0 | 0 | 34 |
Bourne Again Shell | 1 | 6 | 0 | 18 |
Bourne Shell | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 18 | |
Traits | 0 | |
Classes | 226 | |
▷ Abstract classes | 25 | 11.06% |
▷ Concrete classes | 201 | 88.94% |
▷ Final classes | 1 | 0.50% |
Methods | 1,580 | |
▷ Static methods | 125 | 7.91% |
▷ Public methods | 1,097 | 69.43% |
▷ Protected methods | 162 | 10.25% |
▷ Private methods | 321 | 20.32% |
Functions | 38 | |
▷ Named functions | 3 | 7.89% |
▷ Anonymous functions | 35 | 92.11% |
Constants | 208 | |
▷ Global constants | 1 | 0.48% |
▷ Class constants | 207 | 99.52% |
▷ Public constants | 207 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cleverreach/integration-core/dist/resources/img/nps0.png | 2.02KB | 0.95KB | ▼ 52.81% |
resources/images/nps7-8.png | 1.65KB | 0.69KB | ▼ 58.16% |
resources/images/icon_hello.png | 8.33KB | 4.05KB | ▼ 51.39% |
resources/images/cleverreach_logo_envelope.png | 0.41KB | 0.43KB | 0.00% |
vendor/cleverreach/integration-core/dist/resources/img/feedback.png | 3.43KB | 1.82KB | ▼ 46.84% |