Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼134.96ms] Passed 4 tests
Analyzing server-side resources used by WP Issues CRM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 40.33 ▲2.84 |
Dashboard /wp-admin | 3.69 ▲0.64 | 58.07 ▲10.46 |
Posts /wp-admin/edit.php | 3.74 ▲0.64 | 56.08 ▲6.75 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.62 | 103.97 ▼555.32 |
Media Library /wp-admin/upload.php | 3.63 ▲0.63 | 44.23 ▲5.89 |
Fields /wp-admin/admin.php?page=wp-issues-crm-fields | 3.92 | 46.91 |
Interfaces /wp-admin/admin.php?page=wp-issues-crm-externals | 3.52 | 35.59 |
Configure /wp-admin/admin.php?page=wp-issues-crm-settings | 3.52 | 36.00 |
Manage Storage /wp-admin/admin.php?page=wp-issues-crm-storage | 3.52 | 38.80 |
WP Issues CRM /wp-admin/admin.php?page=wp-issues-crm-main | 3.54 | 36.70 |
Options /wp-admin/admin.php?page=wp-issues-crm-options | 3.52 | 38.37 |
Server storage [IO: ▲10.37MB] [DB: ▲0.13MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2,049 new files
Database: 25 new tables, 2 new options
New tables |
---|
wp_wic_external |
wp_wic_email |
wp_wic_upload |
wp_wic_upload_temp |
wp_wic_address_geocode_cache |
wp_wic_data_dictionary |
wp_wic_inbox_image_attachments_xref |
wp_wic_outbox |
wp_wic_option_group |
wp_wic_search_log |
... |
New WordPress options |
---|
wp_issues_crm_db_version_completed |
wp_issues_crm_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Issues CRM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▼681 | 15.50 ▼0.15 | 26.92 ▲18.16 | 47.15 ▼12.28 |
Dashboard /wp-admin | 2,182 ▼752 | 5.75 ▼0.44 | 120.27 ▼32.96 | 125.74 ▲6.20 |
Posts /wp-admin/edit.php | 2,100 ▼639 | 2.45 ▼0.27 | 53.57 ▼14.64 | 98.56 ▲6.31 |
Add New Post /wp-admin/post-new.php | 1,962 ▲381 | 24.19 ▲3.77 | 386.42 ▼14.83 | 129.46 ▲5.49 |
Media Library /wp-admin/upload.php | 1,454 ▼353 | 4.99 ▼0.05 | 114.79 ▼41.40 | 148.29 ▲18.32 |
Fields /wp-admin/admin.php?page=wp-issues-crm-fields | 900 | 2.59 | 43.58 | 89.03 |
Interfaces /wp-admin/admin.php?page=wp-issues-crm-externals | 908 | 2.98 | 42.32 | 79.75 |
Configure /wp-admin/admin.php?page=wp-issues-crm-settings | 2,150 | 2.74 | 64.26 | 81.69 |
Manage Storage /wp-admin/admin.php?page=wp-issues-crm-storage | 1,164 | 2.65 | 44.75 | 85.42 |
WP Issues CRM /wp-admin/admin.php?page=wp-issues-crm-main | 1,810 | 7.25 | 121.25 | 129.63 |
Options /wp-admin/admin.php?page=wp-issues-crm-options | 997 | 2.61 | 45.35 | 84.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 19 tables in the database
- wp_wic_inbox_image
- wp_wic_inbox_incoming_filter
- wp_wic_address_geocode_cache
- wp_wic_inbox_image_attachments_xref
- wp_wic_address
- wp_wic_constituent
- wp_wic_outbox
- wp_wic_subject_issue_map
- wp_wic_email
- wp_wic_inbox_md5_issue_map
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-issues-crm-options
- > User notice in wp-includes/functions.php+5663
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-issues-crm/php/phpmailer6/vendor/phpmailer/phpmailer/get_oauth_token.php
- 1378× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'jamesiarmes\\PhpEws\\Type\\AttendeeConflictData' not found in wp-content/plugins/wp-issues-crm/php/activesync/vendor/php-ews/php-ews/src/Type/GroupAttendeeConflictData.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-issues-crm/php/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-issues-crm/php/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'jamesiarmes\\PhpEws\\ArrayType' not found in wp-content/plugins/wp-issues-crm/php/activesync/vendor/php-ews/php-ews/src/ArrayType/ArrayOfPhoneNumberAttributedValuesType.php:16
- > PHP Fatal error
Uncaught Error: Class 'WIC_List_Option_Group' not found in wp-content/plugins/wp-issues-crm/php/list/class-wic-list-data-dictionary.php:8
- > PHP Fatal error
Uncaught Error: Class 'jamesiarmes\\PhpEws\\Type' not found in wp-content/plugins/wp-issues-crm/php/activesync/vendor/php-ews/php-ews/src/Type/MembersListType.php:15
- > PHP Fatal error
Uncaught Error: Class 'jamesiarmes\\PhpEws\\Type' not found in wp-content/plugins/wp-issues-crm/php/activesync/vendor/php-ews/php-ews/src/Type/ConversationShape.php:16
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/wp-issues-crm/php/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-issues-crm/php/vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'jamesiarmes\\PhpEws\\Response\\ResponseMessageType' not found in wp-content/plugins/wp-issues-crm/php/activesync/vendor/php-ews/php-ews/src/Response/GetDiscoverySearchConfigurationResponseMessageType.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Requires at least: Invalid plugin version format
- Donate link: Please fix this invalid url: ""
wp-issues-crm/wp-issues-crm.php 92% from 13 tests
Analyzing the main PHP file in "WP Issues CRM" version 4.5.5
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected134,841 lines of code in 1,765 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,542 | 21,317 | 76,150 | 97,385 |
XSD | 2 | 1,451 | 560 | 12,291 |
JavaScript | 68 | 1,184 | 2,064 | 7,332 |
Markdown | 52 | 2,408 | 0 | 6,590 |
CSS | 26 | 760 | 234 | 3,751 |
XML | 8 | 272 | 112 | 3,380 |
JSON | 31 | 1 | 0 | 2,443 |
SQL | 23 | 0 | 0 | 1,326 |
SVG | 2 | 0 | 0 | 195 |
YAML | 7 | 18 | 0 | 107 |
Mustache | 1 | 2 | 0 | 27 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 2 | 3 | 0 | 5 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 627.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 59 | |
Traits | 16 | |
Classes | 1,533 | |
▷ Abstract classes | 52 | 3.39% |
▷ Concrete classes | 1,481 | 96.61% |
▷ Final classes | 25 | 1.69% |
Methods | 6,306 | |
▷ Static methods | 794 | 12.59% |
▷ Public methods | 5,014 | 79.51% |
▷ Protected methods | 678 | 10.75% |
▷ Private methods | 614 | 9.74% |
Functions | 556 | |
▷ Named functions | 189 | 33.99% |
▷ Anonymous functions | 367 | 66.01% |
Constants | 2,029 | |
▷ Global constants | 24 | 1.18% |
▷ Class constants | 2,005 | 98.82% |
▷ Public constants | 2,005 | 100.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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jquery-ui-1.11.4.custom/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
php/activesync/vendor/php-ews/php-ews/examples/assets/exchange.png | 6.31KB | 3.11KB | ▼ 50.72% |
css/jquery-ui-1.11.4.custom/images/ui-bg_highlight-soft_50_dddddd_1x100.png | 0.27KB | 0.14KB | ▼ 48.21% |
js/tinymce/js/tinymce/plugins/help/img/logo.png | 12.90KB | 7.62KB | ▼ 40.95% |
css/jquery-ui-1.11.4.custom/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |