10% mata-hoygan

Code Review | Mata HOYGAN

WordPress plugin Mata HOYGAN scored 10% from 54 tests.

About plugin

  • Plugin page: mata-hoygan
  • Plugin version: 5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.3-3.3.1
  • WordPress version: 6.3.1
  • First release: May 11, 2011
  • Latest release: Jan 14, 2012
  • Number of updates: 44
  • Update frequency: every 5.6 days
  • Top authors: Ciberwolf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 5,108 total downloads

Benchmarks

Plugin footprint 58% 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
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mata-hoygan/mata_HOYGAN.php+997
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.15ms] Passed 4 tests

This is a short check of server-side resources used by Mata HOYGAN
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼6.59
Dashboard /wp-admin3.32 ▲0.0149.66 ▲2.23
Posts /wp-admin/edit.php3.37 ▲0.0150.06 ▲1.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.51 ▼9.35
Media Library /wp-admin/upload.php3.24 ▲0.0134.94 ▲1.42

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 15 new options
New WordPress options
db_upgraded
theysaidso_admin_options
mh_no_corregir_s_t
mh_censura
widget_recent-comments
mh_no_corregir_doble
mh_palabras_censuradas
mh_HOYGAN
mh_no_corregir_k
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mata HOYGAN
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.101.94 ▲0.3640.93 ▲1.78
Dashboard /wp-admin2,213 ▲254.88 ▼0.02107.82 ▼1.3439.25 ▼4.90
Posts /wp-admin/edit.php2,096 ▲41.97 ▼0.0838.75 ▲0.4136.09 ▲3.46
Add New Post /wp-admin/post-new.php1,542 ▲921.10 ▼2.18673.62 ▲28.2653.51 ▼9.93
Media Library /wp-admin/upload.php1,392 ▲74.26 ▲0.0296.94 ▼5.9439.87 ▼4.06
Mata-HOYGAN /wp-admin/mata_HOYGAN.php260.440.1113.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • mh_terminado
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mata-hoygan/mata_HOYGAN.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/mata_HOYGAN.php
    • > Network (severe)
    wp-admin/mata_HOYGAN.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: censurar, seo comentarios, hoygan, censure, malas palabras...

mata-hoygan/mata_HOYGAN.php 85% from 13 tests

This is the main PHP file of "Mata HOYGAN" version 5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mata-hoygan.php" instead of "mata_HOYGAN.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)

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
Good job! No executable or dangerous file extensions detected1,527 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194491,527

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected