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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.66ms] Passed 4 tests
This is a short check of server-side resources used by PureClarity - award-winning ecommerce personalisation for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.52 ▼6.92 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.43 ▼14.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.81 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.42 ▲1.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.82 ▲6.62 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 142 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by PureClarity - award-winning ecommerce personalisation for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.29 ▼1.29 | 1.74 ▼0.14 | 43.91 ▼4.71 |
Dashboard /wp-admin | 2,224 ▲21 | 5.03 ▲0.10 | 113.58 ▲1.23 | 43.12 ▲0.42 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.04 ▲0.03 | 38.94 ▲0.19 | 34.81 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,599 ▲54 | 22.47 ▼0.86 | 673.86 ▲39.50 | 49.08 ▼3.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.12 | 103.36 ▼2.99 | 44.07 ▼1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Adapter\\Phpunit\\MockeryTestCase' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/tests/unit/PureClarity/Api/Signup/StatusTest.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/pureclarity-for-woocommerce/includes/admin/views/settings-page.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pureclarity-for-woocommerce/includes/admin/views/dashboard-page.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Adapter\\Phpunit\\MockeryTestCase' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/tests/unit/PureClarity/Api/Feed/TransferTest.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pureclarity-for-woocommerce/includes/admin/views/dashboard/feeds.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Adapter\\Phpunit\\MockeryTestCase' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/tests/unit/PureClarity/Api/Feed/Type/UserTest.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pureclarity-for-woocommerce/includes/admin/views/dashboard/stats.php:13
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Adapter\\Phpunit\\MockeryTestCase' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/tests/unit/PureClarity/Api/Signup/Status/ProcessorTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Adapter\\Phpunit\\MockeryTestCase' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/tests/unit/PureClarity/Api/Signup/SubmitTest.php:25
- > PHP Fatal error
Uncaught Error: Class 'PureClarity\\Api\\Feed\\Feed' not found in wp-content/plugins/pureclarity-for-woocommerce/includes/php-sdk/src/PureClarity/Api/Feed/Type/Order.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
pureclarity-for-woocommerce/pureclarity.php 77% from 13 tests
The main PHP script in "PureClarity - award-winning ecommerce personalisation for WooCommerce" version 3.3.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pureclarity-for-woocommerce.php" instead of "pureclarity.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected13,015 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 2,337 | 5,297 | 11,243 |
CSS | 6 | 223 | 32 | 1,177 |
JavaScript | 5 | 63 | 25 | 528 |
JSON | 1 | 0 | 0 | 30 |
XML | 1 | 5 | 0 | 24 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 2 | 2.20% |
▷ Concrete classes | 89 | 97.80% |
▷ Final classes | 0 | 0.00% |
Methods | 705 | |
▷ Static methods | 2 | 0.28% |
▷ Public methods | 503 | 71.35% |
▷ Protected methods | 45 | 6.38% |
▷ Private methods | 157 | 22.27% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 120 | |
▷ Global constants | 7 | 5.83% |
▷ Class constants | 113 | 94.17% |
▷ Public constants | 113 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/support.png | 1.64KB | 1.54KB | ▼ 5.97% |
admin/css/images/settings.png | 1.10KB | 0.93KB | ▼ 15.49% |
admin/images/logo.png | 5.47KB | 5.46KB | 0.25% |
admin/css/images/documentation.png | 0.56KB | 0.51KB | ▼ 9.25% |