Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.03ms] Passed 4 tests
Server-side resources used by WPB Product Tabs Manager for WooCommerce - Custom Product Tabs - Add Custom Tabs in WooCommerce Product Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.05 ▼4.14 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.12 ▼3.36 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.02 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.10 ▼12.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.12 ▲0.93 |
Add New Tab /wp-admin/post-new.php?post_type=wpb_wtm_tab | 3.40 | 50.22 |
All Tabs /wp-admin/edit.php?post_type=wpb_wtm_tab | 3.32 | 46.77 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WPB Product Tabs Manager for WooCommerce - Custom Product Tabs - Add Custom Tabs in WooCommerce Product Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.61 ▼0.80 | 1.49 ▼0.13 | 35.08 ▼10.83 |
Dashboard /wp-admin | 2,238 ▲50 | 5.86 ▲0.01 | 96.59 ▼0.62 | 42.52 ▼1.78 |
Posts /wp-admin/edit.php | 2,126 ▲40 | 2.12 ▲0.08 | 43.30 ▲3.00 | 41.53 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.19 ▲5.63 | 657.99 ▲8.42 | 52.01 ▼18.46 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.25 ▲0.07 | 96.65 ▼9.74 | 44.29 ▼1.98 |
Add New Tab /wp-admin/post-new.php?post_type=wpb_wtm_tab | 3,554 | 20.82 | 696.66 | 136.58 |
All Tabs /wp-admin/edit.php?post_type=wpb_wtm_tab | 1,082 | 1.96 | 32.31 | 36.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpb-woocommerce-custom-tab-manager/admin/meta-box/meta_box.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (22 tag instead of maximum 10)
wpb-woocommerce-custom-tab-manager/main.php 92% from 13 tests
"WPB Product Tabs Manager for WooCommerce - Custom Product Tabs - Add Custom Tabs in WooCommerce Product Page" version 1.2.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpb-woocommerce-custom-tab-manager.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,641 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 194 | 206 | 794 |
CSS | 4 | 62 | 64 | 715 |
JavaScript | 3 | 39 | 34 | 132 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/meta-box/images/chosen-sprite.png | 0.55KB | 0.70KB | 0.00% |
admin/meta-box/images/image.png | 2.74KB | 0.10KB | ▼ 96.43% |
admin/meta-box/images/sprite.png | 6.06KB | 2.18KB | ▼ 64.10% |