Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.24ms] Passed 4 tests
A check of server-side resources used by Woocommerce Brand
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.69 ▲7.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.80 ▼3.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 56.35 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 100.70 ▲5.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.50 ▼1.71 |
Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Brand
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.29 ▼1.51 | 1.81 ▼0.04 | 42.26 ▼4.49 |
Dashboard /wp-admin | 2,206 ▼0 | 5.92 ▲1.03 | 110.54 ▼0.18 | 41.09 ▼2.11 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.00 | 39.75 ▲0.44 | 38.38 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.49 ▲0.26 | 608.87 ▼129.65 | 44.67 ▼20.97 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.07 | 97.19 ▲1.66 | 40.87 ▼0.48 |
Uninstaller [IO: ✅] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-brand/class/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-brand/woocommerce-brand.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: woocommerce, woocommerce brand, woocommerce extension, brand
wc-brand/woocommerce-brand.php 92% from 13 tests
Analyzing the main PHP file in "Woocommerce Brand" version 1.0.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-brand.php" instead of "woocommerce-brand.php")
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
Everything looks great! No dangerous files found in this plugin4,094 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 281 | 553 | 1,932 |
CSS | 4 | 70 | 74 | 1,606 |
PHP | 3 | 69 | 63 | 556 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected