Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼139.98ms] Passed 4 tests
A check of server-side resources used by Persoo for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 29.18 ▲7.28 |
Dashboard /wp-admin | 3.06 ▼0.00 | 31.74 ▼4.87 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 33.46 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 68.90 ▼558.05 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 22.87 ▲0.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wc_persoo_settings_security_token |
Browser metrics Passed 4 tests
A check of browser resources used by Persoo for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.67 ▲0.36 | 5.16 ▼1.09 | 75.01 ▼1.87 |
Dashboard /wp-admin | 2,930 ▲34 | 6.05 ▼0.14 | 119.04 ▼9.10 | 166.84 ▼6.72 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.23 ▼0.01 | 65.10 ▲1.03 | 142.00 ▲1.08 |
Add New Post /wp-admin/post-new.php | 3,815 ▲1 | 19.31 ▲0.10 | 462.06 ▼26.06 | 156.24 ▼17.09 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.50 ▼0.02 | 158.61 ▲19.46 | 190.64 ▲7.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- wc_persoo_settings_security_token
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: xmlWriter in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_simple.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function id() on null in wp-content/plugins/persoo-for-woocommerce/includes/feed/master_id.php:3
- > PHP Notice
Undefined variable: woo in wp-content/plugins/persoo-for-woocommerce/includes/feed/master_id.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function startElement() on null in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_simple.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_id.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function id_variation() on null in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_variation.php:3
- > PHP Notice
Undefined variable: woo in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_variation.php on line 3
- > PHP Notice
Undefined variable: xmlWriter in wp-content/plugins/persoo-for-woocommerce/includes/feed/category.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function startElement() on null in wp-content/plugins/persoo-for-woocommerce/includes/feed/category.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: woocommerce, persoo
persoo-for-woocommerce/persoo-for-woocommerce.php 92% from 13 tests
The main PHP script in "Persoo for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,175 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 267 | 162 | 1,115 |
JavaScript | 2 | 16 | 2 | 60 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.11% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin