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.06MB] [CPU: ▼5.28ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Inspector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.55 ▲3.26 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.11 ▼0.12 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.29 ▼8.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.43 ▼7.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.99 ▼4.55 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Inspector
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 13.27 ▼1.11 | 2.33 ▲0.01 | 46.25 ▲4.57 |
Dashboard /wp-admin | 2,224 ▲18 | 4.89 ▲0.02 | 101.57 ▼2.41 | 40.99 ▼5.44 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▼0.03 | 34.47 ▼5.78 | 38.11 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.17 ▲5.70 | 665.21 ▼2.89 | 50.49 ▼1.28 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.00 | 96.41 ▼13.33 | 43.36 ▼2.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/woocommerce-inspector/vendor/wpupdatephp/wp-update-php/spec/WPUpdatePhpSpec.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function BarryKooijPlugins\\WooCommerceInspector\\add_action() in wp-content/plugins/woocommerce-inspector/src/Plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: inspector, woocomemerce, woocommerce inspector, template, wow
woocommerce-inspector/woocommerce-inspector.php Passed 13 tests
"WooCommerce Inspector" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
The easiest way to find out what WooCommerce templates are used for which elements.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin773 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 124 | 230 | 445 |
JavaScript | 3 | 23 | 17 | 145 |
JSON | 4 | 0 | 0 | 84 |
LESS | 2 | 1 | 0 | 37 |
CSS | 4 | 0 | 0 | 36 |
Markdown | 2 | 15 | 0 | 26 |
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.49 |
Average class complexity | 8.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 35 | 92.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.89% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected