62% libro-de-reclamaciones-y-quejas

Code Review | Libro de Reclamaciones y Quejas

WordPress plugin Libro de Reclamaciones y Quejas scored62%from 54 tests.

About plugin

  • Plugin page: libro-de-reclamac...
  • Plugin version: 0.1.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Jul 26, 2023
  • Number of updates: 17
  • Update frequency: every 56.9 days
  • Top authors: renzotejada (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /6,315 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.55ms] Passed 4 tests

This is a short check of server-side resources used by Libro de Reclamaciones y Quejas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2545.32 ▲3.17
Dashboard /wp-admin3.55 ▲0.2546.03 ▼5.01
Posts /wp-admin/edit.php3.66 ▲0.3153.77 ▼3.54
Add New Post /wp-admin/post-new.php6.13 ▲0.2589.28 ▼12.81
Media Library /wp-admin/upload.php3.47 ▲0.2441.14 ▲4.99
Libro de Reclamaciones /wp-admin/admin.php?page=libro_settings3.4233.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 323 new files
Database: 1 new table, 7 new options
New tables
wp_rt_libro
New WordPress options
widget_theysaidso_widget
widget_recent-comments
rt_libro_db_version
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Libro de Reclamaciones y Quejas
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.75 ▲0.401.99 ▲0.2645.16 ▲3.41
Dashboard /wp-admin2,220 ▲435.59 ▼0.0983.37 ▼7.1440.98 ▼2.16
Posts /wp-admin/edit.php2,126 ▲261.97 ▼0.0735.25 ▼4.5139.29 ▲3.24
Add New Post /wp-admin/post-new.php1,567 ▲4123.36 ▲5.86670.91 ▼6.5353.36 ▼4.36
Media Library /wp-admin/upload.php1,419 ▲194.31 ▲0.12103.23 ▼2.3946.19 ▼3.75
Libro de Reclamaciones /wp-admin/admin.php?page=libro_settings8182.1927.9628.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_rt_libro
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • rt_libro_db_version
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=libro_settings
    • > Notice in wp-content/plugins/libro-de-reclamaciones-y-quejas/libro_admin.php+453
    Undefined index: tab

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/libro-de-reclamaciones-y-quejas/template/rt-libro-pdf.php
    • > /wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/masterminds/html5/bin/entities.php
  • 148× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Property\\Selector' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/sabberworm/php-css-parser/src/Property/KeyframeSelector.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Value\\RuleValueList' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/sabberworm/php-css-parser/src/Value/CalcRuleValueList.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/phenx/php-font-lib/src/FontLib/TrueType/TableDirectoryEntry.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/dompdf/dompdf/src/FrameReflower/NullFrameReflower.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/phenx/php-font-lib/src/FontLib/Table/Type/kern.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/phenx/php-svg-lib/src/Svg/Tag/Line.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/libro-de-reclamaciones-y-quejas/template/rt-libro-pdf.php on line 137
    • > PHP Notice
      Undefined variable: libro_data in wp-content/plugins/libro-de-reclamaciones-y-quejas/template/rt-libro-pdf.php on line 124
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/libro-de-reclamaciones-y-quejas/vendor/dompdf/dompdf/src/FrameReflower/Text.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: libro de reclamaciones peru, libro de reclamaciones plugin, libro de reclamaciones, libro de reclamaciones wordpress

libro-de-reclamaciones-y-quejas/rt-libro-reclamaciones.php 69% from 13 tests

Analyzing the main PHP file in "Libro de Reclamaciones y Quejas" version 0.1.8
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("libro-de-reclamaciones-y-quejas.php" instead of "rt-libro-reclamaciones.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "5.6")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "5.6.20")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin46,592 lines of code in 246 files:
LanguageFilesBlank linesComment linesLines of code
PHP2108,57716,74041,072
JSON13002,896
Markdown1139001,314
CSS211538562
PO File2204226497
YAML4290121
JavaScript2183105
HTML10017
SVG1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.61
▷ Minimum class complexity1.00
▷ Maximum class complexity811.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces37
Interfaces9
Traits0
Classes187
▷ Abstract classes126.42%
▷ Concrete classes17593.58%
▷ Final classes00.00%
Methods2,176
▷ Static methods1396.39%
▷ Public methods1,71378.72%
▷ Protected methods40518.61%
▷ Private methods582.67%
Functions51
▷ Named functions2447.06%
▷ Anonymous functions2752.94%
Constants217
▷ Global constants31.38%
▷ Class constants21498.62%
▷ Public constants20997.66%

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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/dompdf/dompdf/lib/res/broken_image.png0.60KB0.47KB▼ 22.33%