10% anadir-iconos-validacion-w3c-validator

Code Review | Widget para añadir los iconos de validación de W3C Validator

WordPress plugin Widget para añadir los iconos de validación de W3C Validator scored10%from 54 tests.

About plugin

  • Plugin page: anadir-iconos-val...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Jun 19, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: mavksoftes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /980 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/anadir-iconos-validacion-w3c-validator/Widget_W3C_Validator.php+202
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼62.18ms] Passed 4 tests

Analyzing server-side resources used by Widget para añadir los iconos de validación de W3C Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.434.72 ▼44.11
Dashboard /wp-admin2.10 ▼1.295.65 ▼63.88
Posts /wp-admin/edit.php2.10 ▼1.305.88 ▼42.54
Add New Post /wp-admin/post-new.php2.10 ▼3.836.26 ▼98.17
Media Library /wp-admin/upload.php2.10 ▼1.179.46 ▼26.53

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_vdd_w3c_validator_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Widget para añadir los iconos de validación de W3C Validator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.41 ▲0.061.59 ▼0.2039.14 ▼3.06
Dashboard /wp-admin2,192 ▲155.73 ▲0.1782.79 ▼12.7640.30 ▼0.01
Posts /wp-admin/edit.php2,097 ▼61.98 ▲0.0135.41 ▼1.0734.25 ▼4.77
Add New Post /wp-admin/post-new.php1,526 ▼223.79 ▲0.70666.06 ▼45.5664.59 ▲12.07
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0096.41 ▼3.8443.47 ▼1.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/anadir-iconos-validacion-w3c-validator/Widget_W3C_Validator.php+202
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_vdd_w3c_validator_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/anadir-iconos-validacion-w3c-validator/Widget_W3C_Validator.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Un sitio de WordPress con el plugin en la barra lateral.) image required
The official readme.txt is a good inspiration

anadir-iconos-validacion-w3c-validator/Widget_W3C_Validator.php 92% from 13 tests

The primary PHP file in "Widget para añadir los iconos de validación de W3C Validator" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("anadir-iconos-validacion-w3c-validator.php" instead of "Widget_W3C_Validator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15020134

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Icons/valid-HTML5.png7.72KB3.53KB▼ 54.25%
Icons/valid-xhtml10.png1.84KB1.31KB▼ 28.64%
Icons/valid-ISOHTML.png2.37KB2.08KB▼ 12.09%