10% navidad-indianwebs

Code Review | Plugin Navidad IndianWebs

WordPress plugin Plugin Navidad IndianWebs scored10%from 54 tests.

About plugin

  • Plugin page: navidad-indianwebs
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Dec 23, 2020
  • Number of updates: 34
  • Update frequency: every 54.5 days
  • Top authors: IndianWebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,169 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/navidad-indianwebs/navidad-indianwebs.php+176
    Undefined index: set_copos

Server metrics [RAM: ▼1.84MB] [CPU: ▼57.09ms] Passed 4 tests

An overview of server-side resources used by Plugin Navidad IndianWebs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.304.94 ▼31.31
Dashboard /wp-admin2.18 ▼1.166.24 ▼59.43
Posts /wp-admin/edit.php2.18 ▼1.175.77 ▼42.36
Add New Post /wp-admin/post-new.php2.18 ▼3.706.09 ▼95.26
Media Library /wp-admin/upload.php2.18 ▼1.056.18 ▼27.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 13 new options
New WordPress options
set_imagen
set_maxSize
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
set_flakeCount
set_msg
db_upgraded
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Navidad IndianWebs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20113.73 ▼0.477.06 ▲5.4044.37 ▲3.94
Dashboard /wp-admin2,215 ▲234.93 ▲0.03101.06 ▼6.8079.06 ▲35.32
Posts /wp-admin/edit.php2,112 ▲202.26 ▲0.1234.11 ▼8.7332.82 ▼4.40
Add New Post /wp-admin/post-new.php1,676 ▲15722.63 ▼0.69648.17 ▲45.6657.57 ▲0.97
Media Library /wp-admin/upload.php1,401 ▲164.17 ▼0.01108.84 ▲8.6678.89 ▲36.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the thickbox handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 13 options
    • set_msg
    • set_imagen
    • widget_recent-comments
    • set_minSize
    • db_upgraded
    • set_maxSpeed
    • widget_recent-posts
    • theysaidso_admin_options
    • set_flakeCount
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 2× 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/navidad-indianwebs/navidad-indianwebs.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/navidad-indianwebs/form.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
Please take inspiration from this readme.txt

navidad-indianwebs/navidad-indianwebs.php Passed 13 tests

The primary PHP file in "Plugin Navidad IndianWebs" version 1.3 is used by WordPress to initiate all plugin functionality
56 characters long description:
Pon un mensaje navideño y un efecto de nieve en tu web.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected625 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP260635387
CSS12190212
XML30018
JavaScript3018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png191.95KB48.19KB▼ 74.90%
logoindianwebsgrande.png21.21KB10.60KB▼ 50.06%
snowflake.png0.74KB0.49KB▼ 33.33%
indianwebslogo.png1.28KB0.52KB▼ 59.56%
images/snowflake.png7.00KB4.11KB▼ 41.24%