10% hg-notifications

Code Review | Notificaciones

WordPress plugin Notificaciones scored10%from 54 tests.

About plugin

  • Plugin page: hg-notifications
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Nov 5, 2013
  • Latest release: Dec 10, 2013
  • Number of updates: 6
  • Update frequency: every 9.8 days
  • Top authors: hectorgarrofe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,121 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/hg-notifications/notificaciones.php+27
    Undefined variable: wp_version

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.73ms] Passed 4 tests

A check of server-side resources used by Notificaciones
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.67 ▲8.47
Dashboard /wp-admin3.33 ▲0.0246.97 ▲0.40
Posts /wp-admin/edit.php3.38 ▲0.0242.69 ▼3.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.43 ▼16.62
Media Library /wp-admin/upload.php3.25 ▲0.0244.88 ▲9.45

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Notificaciones
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.21 ▼0.141.85 ▲0.3744.12 ▲4.88
Dashboard /wp-admin2,217 ▲375.64 ▼0.0395.41 ▲9.8877.93 ▲39.62
Posts /wp-admin/edit.php2,119 ▲222.01 ▼0.0034.58 ▼1.9431.70 ▼2.64
Add New Post /wp-admin/post-new.php1,695 ▲16722.14 ▼1.06744.18 ▲43.7654.59 ▼4.67
Media Library /wp-admin/upload.php1,419 ▲194.16 ▼0.0496.68 ▼3.3370.16 ▲21.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hg-notifications/mp6.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hg-notifications/notificaciones.php:15
    • > PHP Notice
      Undefined index: oscimp_hidden in wp-content/plugins/hg-notifications/notificaciones_admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hg-notifications/display.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hg-notifications/notificaciones_admin.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hg-notifications/options_panel.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hg-notifications/help.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: notificaciones, notifications

hg-notifications/notificaciones.php 92% from 13 tests

"Notificaciones" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hg-notifications.php" instead of "notificaciones.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 plugin224 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP62837118
PO File1304061
CSS15445

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/hg_logo.png3.75KB2.02KB▼ 46.28%
img/notificaciones.png0.75KB0.63KB▼ 15.03%