84% elquarto

Code Review | El Quarto

WordPress plugin El Quarto scored 84% from 54 tests.

About plugin

  • Plugin page: elquarto
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.6.1
  • WordPress version: 5.8.1
  • First release: Feb 6, 2021
  • Latest release: Mar 3, 2021
  • Number of updates: 8
  • Update frequency: every 3.3 days
  • Top authors: plugins2xt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 342 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1934.36 ▲13.73
Dashboard /wp-admin3.13 ▲0.0846.31 ▲1.94
Posts /wp-admin/edit.php3.24 ▲0.1444.77 ▲2.96
Add New Post /wp-admin/post-new.php5.49 ▲0.0692.54 ▼554.00
Media Library /wp-admin/upload.php3.08 ▲0.0732.48 ▲3.13
ElQuarto /wp-admin/options-general.php?page=elquarto3.0528.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲12516.10 ▲0.4917.88 ▲7.6848.02 ▲0.46
Dashboard /wp-admin2,972 ▲415.91 ▼0.13146.99 ▼12.29104.03 ▼11.88
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0068.13 ▼4.5181.75 ▼6.13
Add New Post /wp-admin/post-new.php3,541 ▲1,85814.77 ▼3.99503.07 ▲99.61109.97 ▼3.05
Media Library /wp-admin/upload.php1,812 ▲25.03 ▲0.01156.63 ▲9.90118.75 ▼1.31
ElQuarto /wp-admin/options-general.php?page=elquarto1,0472.1057.8980.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS21623408
PHP13114514373
SVG40012
JavaScript20113

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 code0.12
Average class complexity2.38
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.32
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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