10% alergenos-alimentarios-indianwebs

Code Review | Alergenos Alimentarios IndianWebs

WordPress plugin Alergenos Alimentarios IndianWebs scored10%from 54 tests.

About plugin

  • Plugin page: alergenos-aliment...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Sep 16, 2020
  • Number of updates: 19
  • Update frequency: every 91.4 days
  • Top authors: IndianWebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,082 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/alergenos-alimentarios-indianwebs/alergenos_iconos.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; Alergenos_Iconos has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.51ms] Passed 4 tests

A check of server-side resources used by Alergenos Alimentarios IndianWebs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.30 ▼36.79
Dashboard /wp-admin2.10 ▼1.205.33 ▼44.19
Posts /wp-admin/edit.php2.10 ▼1.256.51 ▼42.11
Add New Post /wp-admin/post-new.php2.10 ▼3.785.92 ▼90.94
Media Library /wp-admin/upload.php2.10 ▼1.135.93 ▼26.94
Alérgenos Aliment. /wp-admin/options-general.php?page=alergenos_configuracion2.105.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Alergenos Alimentarios IndianWebs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.26 ▼1.121.68 ▼0.4542.33 ▼5.49
Dashboard /wp-admin2,210 ▲224.85 ▼0.02112.09 ▲8.0536.01 ▼9.67
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0240.43 ▲2.1134.53 ▲3.22
Add New Post /wp-admin/post-new.php1,364 ▼17016.92 ▼6.25496.81 ▼168.9846.85 ▼3.88
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.01101.20 ▲3.1543.61 ▼2.75
Alérgenos Aliment. /wp-admin/options-general.php?page=alergenos_configuracion8371.7827.5826.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/alergenos-alimentarios-indianwebs/alergenos_iconos.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; Alergenos_Iconos has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=alergenos_configuracion
    • > Deprecated in wp-content/plugins/alergenos-alimentarios-indianwebs/alergenos_iconos.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; Alergenos_Iconos has a deprecated constructor

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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/alergenos-alimentarios-indianwebs/alergenos_iconos.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=alergenos_configuracion
    • > Javascript (severe) in unknown
    /wp-content/plugins/alergenos-alimentarios-indianwebs/js/tinymce-emoticons.js?ver=6.3.1 415:57 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
Please take inspiration from this readme.txt

alergenos-alimentarios-indianwebs/alergenos_iconos.php 92% from 13 tests

Analyzing the main PHP file in "Alergenos Alimentarios IndianWebs" version 1.1
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alergenos-alimentarios-indianwebs.php" instead of "alergenos_iconos.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,063 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS22340622
JavaScript325942206
PHP12716133
XML600102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
59 PNG files occupy 0.62MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/familia-5/huevos.png2.15KB1.08KB▼ 49.82%
images/familia-6/dioxido-de-azufre-y-sulfitos.png4.08KB2.12KB▼ 47.98%
js/button.png2.34KB1.25KB▼ 46.62%
images/familia-1/crustaceos.png3.42KB1.88KB▼ 44.97%
screenshot-1.png305.35KB78.08KB▼ 74.43%