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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.85ms] Passed 4 tests
An overview of server-side resources used by Persoo for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.56 ▼7.77 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.28 ▼5.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.57 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.92 ▼31.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.53 ▲1.31 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wc_persoo_settings_security_token |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Persoo for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.14 | 1.77 ▼0.09 | 44.56 ▲5.49 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.03 | 89.32 ▲0.28 | 40.10 ▼3.62 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.03 ▲0.03 | 36.31 ▲1.42 | 36.08 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.29 ▼0.39 | 652.71 ▲31.89 | 60.96 ▲14.30 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.10 | 102.12 ▼3.82 | 46.87 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- wc_persoo_settings_security_token
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > 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/category.php:3
- > PHP Notice
Undefined variable: xmlWriter in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_simple.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 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 startElement() on null in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_simple.php:3
- > PHP Notice
Undefined variable: woo in wp-content/plugins/persoo-for-woocommerce/includes/feed/product_variation.php on line 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 Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: persoo, woocommerce
persoo-for-woocommerce/persoo-for-woocommerce.php 92% from 13 tests
The main file in "Persoo for WooCommerce" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 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
No dangerous file extensions were detected1,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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
PNG images were not found in this plugin