Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.90MB] [CPU: ▼52.84ms] Passed 4 tests
A check of server-side resources used by Real Seguro Viagem
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.23 ▼37.46 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.82 ▼46.28 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.51 ▼41.30 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.81 ▼86.30 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.67 ▼30.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Real Seguro Viagem
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 13.18 ▼1.20 | 4.80 ▲2.64 | 45.26 ▼1.19 |
Dashboard /wp-admin | 2,215 ▲27 | 4.95 ▼0.84 | 108.69 ▲5.23 | 64.89 ▲22.82 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.21 ▲0.16 | 37.51 ▲2.79 | 32.70 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,522 ▲2 | 17.71 ▼5.38 | 685.27 ▼35.69 | 55.00 ▼1.06 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.18 ▼0.10 | 99.07 ▼3.52 | 66.33 ▲22.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the postbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- 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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/seguro-viagem/view/site/front.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: str in wp-content/plugins/seguro-viagem/view/admin/form.php on line 11
- > PHP Fatal error
Trait 'RTI\\PublicVars' not found in wp-content/plugins/seguro-viagem/class/TI_Strings.php on line 5
- > PHP Notice
Undefined variable: title in wp-content/plugins/seguro-viagem/view/admin/content.php on line 2
- > PHP Notice
Undefined variable: token in wp-content/plugins/seguro-viagem/view/site/front.php on line 1
- > PHP Fatal error
Trait 'RTI\\PublicVars' not found in wp-content/plugins/seguro-viagem/class/TI_Template.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_meta_boxes() in wp-content/plugins/seguro-viagem/view/admin/content.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function t() on null in wp-content/plugins/seguro-viagem/view/admin/form.php:11
- > PHP Notice
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 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: afiliado, affiliate, programa de afiliao, travel, afiliados...
seguro-viagem/seguro-viagem.php 77% from 13 tests
The entry point to "Real Seguro Viagem" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin228 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 62 | 41 | 222 |
CSS | 1 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 0 | 3 |
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 | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.65KB | 0.62KB | ▼ 4.95% |