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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼136.49ms] Passed 4 tests
An overview of server-side resources used by El Quarto
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 34.36 ▲13.73 |
Dashboard /wp-admin | 3.13 ▲0.08 | 46.31 ▲1.94 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 44.77 ▲2.96 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 92.54 ▼554.00 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 32.48 ▲3.13 |
ElQuarto /wp-admin/options-general.php?page=elquarto | 3.05 | 28.87 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_elquarto_wp_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for El Quarto
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 16.10 ▲0.49 | 17.88 ▲7.68 | 48.02 ▲0.46 |
Dashboard /wp-admin | 2,972 ▲41 | 5.91 ▼0.13 | 146.99 ▼12.29 | 104.03 ▼11.88 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 68.13 ▼4.51 | 81.75 ▼6.13 |
Add New Post /wp-admin/post-new.php | 3,541 ▲1,858 | 14.77 ▼3.99 | 503.07 ▲99.61 | 109.97 ▼3.05 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▲0.01 | 156.63 ▲9.90 | 118.75 ▼1.31 |
ElQuarto /wp-admin/options-general.php?page=elquarto | 1,047 | 2.10 | 57.89 | 80.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_elquarto_wp_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/elquarto/public/partials/elquarto-public-display-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elquarto/includes/class-elquarto-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elquarto/admin/partials/elquarto-admin-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: elquarto, viagem, afiliado, hotis
elquarto/elquarto.php Passed 13 tests
The entry point to "El Quarto" version 1.0.3 is a PHP file that has certain tags in its header comment area
103 characters long description:
Utilize widgets para possibilitar a consulta de hotéis em nosso site já com seu rastreio de afiliado.
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 plugin796 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 16 | 23 | 408 |
PHP | 13 | 114 | 514 | 373 |
SVG | 4 | 0 | 0 | 12 |
JavaScript | 2 | 0 | 11 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 4 | |
▷ Named functions | 4 | 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
There are no PNG files in this plugin