Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲4.44MB] [CPU: ▲17.65ms] Passed 4 tests
A check of server-side resources used by WP Customer Area
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.78 ▲4.31 | 59.49 ▲19.47 |
Dashboard /wp-admin | 7.80 ▲4.45 | 80.30 ▲18.47 |
Posts /wp-admin/edit.php | 7.92 ▲4.56 | 77.04 ▲24.66 |
Add New Post /wp-admin/post-new.php | 10.40 ▲4.51 | 113.05 ▲7.98 |
Media Library /wp-admin/upload.php | 7.72 ▲4.48 | 68.86 ▲33.91 |
WP Customer Area /wp-admin/options-general.php?page=wpca-settings | 7.69 | 57.26 |
Logs /wp-admin/admin.php?page=wpca-logs | 7.77 | 59.57 |
Status /wp-admin/admin.php?page=wpca-status | 7.70 | 55.93 |
Server storage [IO: ▲25.67MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 25.67MB)
Filesystem: 903 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_cuar_private_files |
widget_theysaidso_widget |
cuar/core/status/warning-messages |
widget_cuar_private_file_archives |
can_compress_scripts |
widget_cuar_private_page_categories |
widget_cuar_private_file_authors |
db_upgraded |
widget_recent-posts |
widget_cuar_private_page_authors |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Customer Area
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲209 | 14.35 ▼0.20 | 2.04 ▲0.17 | 42.14 ▲1.36 |
Dashboard /wp-admin | 2,318 ▲141 | 5.62 ▲0.04 | 96.38 ▲9.79 | 44.43 ▲0.42 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 2.18 ▲0.19 | 37.13 ▲1.18 | 35.22 ▲4.74 |
Add New Post /wp-admin/post-new.php | 1,629 ▲98 | 22.92 ▼0.05 | 672.04 ▲5.88 | 66.43 ▲9.90 |
Media Library /wp-admin/upload.php | 1,523 ▲129 | 4.23 ▲0.08 | 96.64 ▼5.29 | 44.79 ▼0.87 |
WP Customer Area /wp-admin/options-general.php?page=wpca-settings | 1,210 | 2.14 | 35.78 | 36.84 |
Logs /wp-admin/admin.php?page=wpca-logs | 1,342 | 1.82 | 28.66 | 25.97 |
Status /wp-admin/admin.php?page=wpca-status | 1,125 | 1.67 | 25.71 | 33.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 17 options in the database
- widget_theysaidso_widget
- widget_cuar_private_page_archives
- db_upgraded
- cuar/core/status/warning-messages
- widget_cuar_private_files
- widget_cuar_private_page_categories
- widget_recent-comments
- widget_cuar_private_file_authors
- widget_cuar_private_page_authors
- cuar_deferred_actions
- ...
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
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 24× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/customer-area/src/php/core-classes/templates/collections-button-group.template.php
- > /wp-content/plugins/customer-area/src/php/core-addons/customer-pages/templates/pagination.template.php
- > /wp-content/plugins/customer-area/src/php/core-classes/templates/widget-content-list.template.php
- > /wp-content/plugins/customer-area/src/php/core-addons/admin-area/templates/private-post-list-filters-row-taxonomies.template.php
- > /wp-content/plugins/customer-area/libs/php/automattic/parse-readme.php
- > /wp-content/plugins/customer-area/src/php/core-addons/post-owner/templates/post-owner-fields-readonly.template.php
- > /wp-content/plugins/customer-area/src/php/core-classes/templates/widget-terms-cloud.template.php
- > /wp-content/plugins/customer-area/src/php/core-addons/payments/templates/settings-payment-icons-scripts.template.php
- > /wp-content/plugins/customer-area/src/php/core-addons/customer-account-edit/templates/customer-account-edit-content-field-group-open.template.php
- > /wp-content/plugins/customer-area/libs/php/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
- 564× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
include_once(CUAR_INCLUDES_DIR/core-classes/object-meta/field/simple-field.class.php): failed to open stream: No such file or directory in wp-content/plugins/customer-area/src/php/core-classes/object-meta/field/email-field.class.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/customer-area/src/php/core-addons/payments/templates/payment-history-inline.template.php:7
- > PHP Fatal error
Uncaught Error: Class 'CUAR_Shortcode' not found in wp-content/plugins/customer-area/src/php/core-addons/shortcodes/shortcodes/menu-shortcode.class.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_date_from_gmt() in wp-content/plugins/customer-area/src/php/core-addons/payments/templates/payment-editor-note-list-item.template.php:7
- > PHP Fatal error
require_once(): Failed opening required 'CUAR_INCLUDES_DIR/core-classes/addon.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/customer-area/src/php/core-addons/log/log-addon.class.php on line 19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/customer-area/src/php/core-addons/customer-pages/templates/pagination.template.php on line 17
- > PHP Warning
require_once(CUAR_INCLUDES_DIR/core-classes/addon-content-page.class.php): failed to open stream: No such file or directory in wp-content/plugins/customer-area/src/php/core-addons/customer-private-pages/customer-private-pages-addon.class.php on line 19
- > PHP Warning
require_once(CUAR_INCLUDES_DIR/core-classes/addon-page.class.php): failed to open stream: No such file or directory in wp-content/plugins/customer-area/src/php/core-classes/widget-terms.class.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'CUAR_INCLUDES_DIR/core-classes/addon-page.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/customer-area/src/php/core-classes/addon-edit-content-page.class.php on line 20
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/customer-area/src/php/core-classes/templates/content-page-content-dashboard.template.php:30
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
customer-area/customer-area.php 92% from 13 tests
The main PHP file in "WP Customer Area" ver. 8.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 95% from 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 detected208,620 lines of code in 736 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 43,928 | 56,659 | 105,314 |
PHP | 398 | 10,588 | 27,119 | 87,301 |
JavaScript | 164 | 2,030 | 2,137 | 7,431 |
SVG | 76 | 18 | 0 | 2,834 |
LESS | 39 | 350 | 131 | 2,254 |
JSON | 8 | 0 | 0 | 2,148 |
Markdown | 9 | 391 | 0 | 955 |
CSS | 11 | 35 | 33 | 338 |
XML | 2 | 1 | 4 | 45 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,415)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 500)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 52.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,415.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 500.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 200 | |
▷ Abstract classes | 23 | 11.50% |
▷ Concrete classes | 177 | 88.50% |
▷ Final classes | 0 | 0.00% |
Methods | 2,794 | |
▷ Static methods | 182 | 6.51% |
▷ Public methods | 1,981 | 70.90% |
▷ Protected methods | 761 | 27.24% |
▷ Private methods | 52 | 1.86% |
Functions | 71 | |
▷ Named functions | 65 | 91.55% |
▷ Anonymous functions | 6 | 8.45% |
Constants | 166 | |
▷ Global constants | 156 | 93.98% |
▷ Class constants | 10 | 6.02% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
54 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/common/img/payment-icons/color-light/shopify.png | 2.12KB | 0.96KB | ▼ 54.57% |
assets/common/img/payment-icons/color-light/worldpay.png | 2.02KB | 0.88KB | ▼ 56.46% |
assets/common/img/payment-icons/color-light/discover.png | 2.18KB | 1.08KB | ▼ 50.16% |
skins/frontend/master/assets/img/framework/sprites/favicons.png | 5.86KB | 2.38KB | ▼ 59.31% |
skins/frontend/master/assets/img/framework/plugins/arrow_left_12x12.png | 0.21KB | 0.16KB | ▼ 23.74% |