78% maxima-velocidad

Code Review | Máxima Velocidad

WordPress plugin Máxima Velocidad scored78%from 54 tests.

About plugin

  • Plugin page: maxima-velocidad
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2022
  • Latest release: Mar 22, 2022
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: concreta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,189 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▲4.60ms] Passed 4 tests

Analyzing server-side resources used by Máxima Velocidad
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.72 ▲5.34
Dashboard /wp-admin3.45 ▲0.1457.21 ▲6.85
Posts /wp-admin/edit.php3.56 ▲0.2048.66 ▲1.78
Add New Post /wp-admin/post-new.php6.03 ▲0.14101.27 ▲4.43
Media Library /wp-admin/upload.php3.37 ▲0.1443.79 ▲8.11
Deshacer Cambiar Thumnbails a Webp /wp-admin/admin.php?page=maxvDeshacerCambiarThumbs-slug3.3436.94
Comparar imagenes /wp-admin/admin.php?page=maxvCompararImagenes-slug3.3443.44
Volver al Origen de todos los cambios /wp-admin/admin.php?page=maxvVolverAlOrigen-slug3.3428.98
Cambiar Thumnbails a Webp /wp-admin/admin.php?page=maxvCambiarThumbs-slug3.3133.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
maxvConfiguracion

Browser metrics Passed 4 tests

An overview of browser requirements for Máxima Velocidad
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.75 ▲0.141.72 ▼0.0343.43 ▼2.97
Dashboard /wp-admin2,207 ▲275.64 ▼0.2298.86 ▲8.5241.50 ▼2.99
Posts /wp-admin/edit.php2,115 ▲152.02 ▲0.0234.64 ▼4.4634.46 ▼1.61
Add New Post /wp-admin/post-new.php1,433 ▼11218.06 ▼4.98664.91 ▲8.0460.11 ▼3.61
Media Library /wp-admin/upload.php1,412 ▲124.22 ▼0.02111.30 ▲4.3943.15 ▼3.75
Deshacer Cambiar Thumnbails a Webp /wp-admin/admin.php?page=maxvDeshacerCambiarThumbs-slug7902.1728.2426.43
Comparar imagenes /wp-admin/admin.php?page=maxvCompararImagenes-slug7902.0130.0036.38
Volver al Origen de todos los cambios /wp-admin/admin.php?page=maxvVolverAlOrigen-slug7692.0227.2027.09
Cambiar Thumnbails a Webp /wp-admin/admin.php?page=maxvCambiarThumbs-slug7692.0827.0026.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • maxvConfiguracion
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=maxvCambiarThumbs-slug
    • > Notice in wp-content/plugins/maxima-velocidad/inc/maxvAdmin.php+101
    Undefined index: compresionWebp
    • > GET request to /wp-admin/admin.php?page=maxvCambiarThumbs-slug
    • > Notice in wp-content/plugins/maxima-velocidad/inc/maxvAdmin.php+107
    Undefined index: cantidadProcesar

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/maxima-velocidad/maxima-velicidad.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/maxima-velocidad/inc/maxvAdmin.php:7

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 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Cambiar las imágenes destacadas (Thumbnails) requiere solo clickear un botón. Y siempre se puede deshacer.), #2 (Máxima Velocidad detecta las imagenes que no se pueden cambiar: GIF animados y tanto GIF como PNG transparente. Para cada imagen informa el tamaño original y el nuevo, para que puedas conocer cuánto ganaste en peso de archivos.)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === maxima-velocidad === )
You can take inspiration from this readme.txt

maxima-velocidad/maxima-velicidad.php 92% from 13 tests

The main PHP script in "Máxima Velocidad" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("maxima-velocidad.php" instead of "maxima-velicidad.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected638 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP410333638

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity44.50
▷ Minimum class complexity22.00
▷ Maximum class complexity67.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods1756.67%
▷ Protected methods1240.00%
▷ Private methods13.33%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png136.88KB45.37KB▼ 66.86%
assets/screenshot-1.png78.58KB30.33KB▼ 61.40%