Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.02ms] Passed 4 tests
A check of server-side resources used by Recomendação de moda
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.65 ▼8.56 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.93 ▲1.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.67 ▲7.47 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.14 ▼23.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.28 ▲2.58 |
Settings /wp-admin/admin.php?page=hookit_recommended_products | 3.28 | 33.76 |
Update Posts /wp-admin/admin.php?page=hookit_recommended_products_tool | 3.29 | 35.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recomendação de moda
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.26 ▼0.39 | 1.54 ▼0.07 | 40.09 ▼4.54 |
Dashboard /wp-admin | 2,233 ▲53 | 5.67 ▲0.06 | 97.32 ▲12.14 | 42.66 ▲5.10 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.11 ▲0.10 | 39.59 ▲0.04 | 39.79 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.23 ▲0.42 | 672.85 ▲41.84 | 61.98 ▲11.60 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.46 ▲0.24 | 98.26 ▼1.38 | 40.92 ▼0.47 |
Settings /wp-admin/admin.php?page=hookit_recommended_products | 1,042 | 2.26 | 32.20 | 30.87 |
Update Posts /wp-admin/admin.php?page=hookit_recommended_products_tool | 834 | 2.10 | 25.04 | 24.00 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 items
- 12× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/hookit-related-products/admin/settings.php
- > /wp-content/plugins/hookit-related-products/includes/filters.php
- > /wp-content/plugins/hookit-related-products/admin/views/metabox.php
- > /wp-content/plugins/hookit-related-products/admin/actions.php
- > /wp-content/plugins/hookit-related-products/admin/functions.php
- > /wp-content/plugins/hookit-related-products/admin/views/tool.php
- > /wp-content/plugins/hookit-related-products/views/recommended-products.php
- > /wp-content/plugins/hookit-related-products/admin/tool.php
- > /wp-content/plugins/hookit-related-products/includes/actions.php
- > /wp-content/plugins/hookit-related-products/hookit-recommended-products.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/hookit-related-products/admin/views/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/hookit-related-products/admin/views/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hookit-related-products/init.php:3
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
hookit-related-products/hookit-recommended-products.php 85% from 13 tests
The principal PHP file in "Recomendação de moda" v. 0.6.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("hookit-related-products.php" instead of "hookit-recommended-products.php")
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
Success! There were no dangerous files found in this plugin1,345 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 120 | 185 | 606 |
JavaScript | 3 | 81 | 14 | 458 |
CSS | 4 | 16 | 18 | 182 |
PO File | 1 | 37 | 52 | 88 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.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
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 |
assets/img/switch.png | 3.01KB | 0.64KB | ▼ 78.70% |
assets/img/sign.png | 1.85KB | 0.91KB | ▼ 50.95% |