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
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲0.40ms] Passed 4 tests
Server-side resources used by TP Next & Previous Button on Single Product Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.02 ▼7.60 |
Dashboard /wp-admin | 3.42 ▲0.12 | 54.73 ▲0.94 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 55.79 ▲5.07 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 102.67 ▲3.51 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.26 ▲4.75 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 18 new options
New WordPress options |
---|
tpnpb_add_product_image |
tpnpb_buttons_position |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
tpnpb_add_product_name |
tpnpb_activate_next_previous |
tpnpb_label_next |
tpnpb_buttons_icons |
... |
Browser metrics Passed 4 tests
TP Next & Previous Button on Single Product Page: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲121 | 13.72 ▲0.55 | 4.92 ▲3.18 | 41.05 ▼5.40 |
Dashboard /wp-admin | 2,217 ▲11 | 4.94 ▲0.10 | 110.19 ▼2.02 | 74.17 ▲26.78 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.22 ▲0.18 | 39.00 ▲4.31 | 33.59 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,576 ▲34 | 19.49 ▼3.44 | 728.43 ▲40.64 | 58.94 ▲6.98 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.41 ▲0.18 | 111.26 ▲3.96 | 47.09 ▲3.32 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tp-next-previous-button-in-single-product-page/public/partials/tp-next-previous-button-in-single-product-page-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-next-previous-button-in-single-product-page/admin/partials/tp-next-previous-button-in-single-product-page-admin-display.php:15
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: next and previous buttons, product, woocommerce, woocommerce product, next and previous buttons in single product page
tp-next-previous-button-in-single-product-page/tp-next-previous-button-in-single-product-page.php Passed 13 tests
This is the main PHP file of "TP Next & Previous Button on Single Product Page" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Success! There were no dangerous files found in this plugin3,099 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 158 | 98 | 1,739 |
PHP | 12 | 203 | 507 | 501 |
HTML | 1 | 9 | 1 | 409 |
JSON | 1 | 0 | 0 | 358 |
SVG | 1 | 57 | 0 | 69 |
JavaScript | 3 | 9 | 35 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
admin/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |
admin/partials/images/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
admin/partials/images/tp.png | 1.24KB | 0.26KB | ▼ 79.08% |