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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.83ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Product Tab
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.18 ▲1.96 |
Dashboard /wp-admin | 3.40 ▲0.09 | 53.20 ▲2.83 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.83 ▼3.43 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.68 ▼12.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.06 ▲2.80 |
Product Tabs /wp-admin/edit.php?post_type=c_p_tab | 3.36 | 39.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Product Tab
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.16 ▼0.40 | 1.99 ▼0.65 | 45.09 ▼0.50 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▲0.03 | 86.36 ▼13.31 | 41.17 ▼1.12 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.98 ▼0.03 | 33.72 ▼3.63 | 36.14 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.04 ▼0.75 | 642.58 ▼37.00 | 49.05 ▼5.44 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.16 | 99.51 ▼3.30 | 42.88 ▼0.82 |
Product Tabs /wp-admin/edit.php?post_type=c_p_tab | 1,066 | 1.96 | 32.87 | 33.00 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ultimate-product-tab/Ultimate_Custom_Product_Tabs.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
- Screenshots: Screenshot #1 (Demo Screenshots) image not found
ultimate-product-tab/Ultimate_Custom_Product_Tabs.php 92% from 13 tests
"Ultimate Product Tab" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-product-tab.php" instead of "Ultimate_Custom_Product_Tabs.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
Success! There were no dangerous files found in this plugin279 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 128 | 279 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin