Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.64ms] Passed 4 tests
Server-side resources used by Product Tab Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 46.06 ▲5.03 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.69 ▼14.73 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.70 ▼4.67 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 84.64 ▼21.33 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.01 ▲2.17 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Product Tab Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.90 ▼0.41 | 9.12 ▲7.40 | 43.67 ▼2.78 |
Dashboard /wp-admin | 2,202 ▲25 | 5.69 ▲0.02 | 89.84 ▼7.61 | 39.07 ▼1.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.03 | 36.13 ▼5.69 | 35.19 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,534 ▼11 | 23.19 ▼0.05 | 669.55 ▼33.75 | 61.01 ▲4.98 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.13 ▼0.14 | 95.36 ▼16.84 | 46.64 ▼1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/product-tab-manager/public/partials/product-tab-manager-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/product-tab-manager/admin/partials/product-tab-manager-admin-display.php:19
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% 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 require attention:
- Screenshots: Add images for these screenshots: #1 (`/assets/screen1.png`), #2 (`/assets/screen2.png`), #3 (`/assets/screen3.png`)
product-tab-manager/product-tab-manager.php Passed 13 tests
This is the main PHP file of "Product Tab Manager" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
This plugin allows you to manage your woocommerce product page tabs. Tabs can be rename, removed and re-ordered on the product page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin399 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 170 | 567 | 393 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.50MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screen4.png | 102.76KB | 30.62KB | ▼ 70.21% |
assets/screen3.png | 102.76KB | 30.62KB | ▼ 70.21% |
assets/screen1.png | 108.47KB | 32.08KB | ▼ 70.42% |
assets/screen2.png | 202.55KB | 54.27KB | ▼ 73.21% |