Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.27ms] Passed 4 tests
An overview of server-side resources used by WSB Brands
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.77 ▼1.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.30 ▲1.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.17 ▼8.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.80 ▼12.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.43 ▲2.72 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WSB Brands
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.51 ▲0.24 | 1.72 ▼0.11 | 45.04 ▼3.15 |
Dashboard /wp-admin | 2,221 ▲33 | 5.84 ▼0.05 | 100.47 ▼10.89 | 42.00 ▲4.09 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.01 ▼0.04 | 35.37 ▼7.09 | 36.72 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,431 ▼97 | 22.26 ▲4.10 | 594.44 ▼52.31 | 30.68 ▼24.64 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.18 ▼0.06 | 95.71 ▼4.05 | 38.20 ▼3.63 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wsb-brands/includes/class-wsb-brands-carousel-widget.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wsb-brands/includes/class-wsb-brands-widget.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: brands addon, brand taxonomy, woocommerce, brands, woocommerce brands...
wsb-brands/wsb-brands.php 92% from 13 tests
The entry point to "WSB Brands" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,295 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 470 | 681 | 1,519 |
CSS | 3 | 54 | 7 | 427 |
PO File | 1 | 128 | 136 | 286 |
JavaScript | 3 | 23 | 20 | 63 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 5 | 6.49% |
▷ Public methods | 71 | 92.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.79% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/slider-right.png | 1.11KB | 0.26KB | ▼ 76.10% |
public/img/slider-left.png | 1.11KB | 0.26KB | ▼ 76.23% |