84% mantenimiento-web

Code Review | Mantenimiento web

WordPress plugin Mantenimiento web scored84%from 54 tests.

About plugin

  • Plugin page: mantenimiento-web
  • Plugin version: 0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2018
  • Latest release: Oct 8, 2022
  • Number of updates: 61
  • Update frequency: every 23.5 days
  • Top authors: cdoral (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20,000+ active /223,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by Mantenimiento web
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.30 ▲2.65
Dashboard /wp-admin3.31 ▼0.0346.95 ▼15.80
Posts /wp-admin/edit.php3.37 ▲0.0148.87 ▲1.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.55 ▼6.74
Media Library /wp-admin/upload.php3.24 ▲0.0137.25 ▲0.52
Mantenimiento Web /wp-admin/tools.php?page=cdp_mantenimiento_web3.2332.54

Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
cdp_mantenimiento_web_mensajes

Browser metrics Passed 4 tests

Checking browser requirements for Mantenimiento web
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.23 ▼0.421.81 ▲0.1439.65 ▼1.38
Dashboard /wp-admin2,204 ▲275.61 ▼0.0689.29 ▲1.4336.48 ▼2.54
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0534.84 ▼3.9433.49 ▲2.18
Add New Post /wp-admin/post-new.php1,531 ▼023.03 ▼0.29601.06 ▼29.5750.79 ▼11.50
Media Library /wp-admin/upload.php1,409 ▲184.19 ▲0.05104.39 ▲3.8542.26 ▲2.01
Mantenimiento Web /wp-admin/tools.php?page=cdp_mantenimiento_web9332.0224.4026.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • cdp_mantenimiento_web_mensajes
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/mantenimiento-web/frontal-fx/index.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/mantenimiento-web/frontal/index.php:25
    • > PHP Warning
      Use of undefined constant CDP_MANTENIMIENTO_URL_FRONTAL - assumed 'CDP_MANTENIMIENTO_URL_FRONTAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mantenimiento-web/frontal/index.php on line 21
    • > PHP Notice
      Undefined variable: plantilla in wp-content/plugins/mantenimiento-web/frontal/index.php on line 22
    • > PHP Warning
      Use of undefined constant CDP_MANTENIMIENTO_URL_FRONTAL_FX - assumed 'CDP_MANTENIMIENTO_URL_FRONTAL_FX' (this will throw an Error in a future version of PHP) in wp-content/plugins/mantenimiento-web/frontal-fx/index.php on line 21
    • > PHP Warning
      Use of undefined constant CDP_MANTENIMIENTO_URL_FRONTAL_FX - assumed 'CDP_MANTENIMIENTO_URL_FRONTAL_FX' (this will throw an Error in a future version of PHP) in wp-content/plugins/mantenimiento-web/frontal-fx/index.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mantenimiento-web/config.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: mantenimiento web, modo mantenimiento, pgina en construccin, mantenimiento wordpress

mantenimiento-web/mantenimiento-web.php 92% from 13 tests

The primary PHP file in "Mantenimiento web" version 0.14 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,002 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11105244757
JavaScript32857151
CSS261591
Markdown1303

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods2896.55%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants18
▷ Global constants1161.11%
▷ Class constants738.89%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
frontal-fx/img/burbuja-verde.png18.50KB14.12KB▼ 23.67%
frontal-fx/img/burbuja-roja.png18.74KB14.40KB▼ 23.16%
frontal-fx/img/burbuja-amarilla.png18.42KB13.97KB▼ 24.13%
frontal-fx/img/burbuja-celeste.png30.53KB15.39KB▼ 49.60%
frontal-fx/img/burbuja-morada.png18.12KB14.49KB▼ 20.03%