10% imagen-del-dia

Code Review | Imagen del dia

WordPress plugin Imagen del dia scored 10% from 54 tests.

About plugin

  • Plugin page: imagen-del-dia
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 16, 2017
  • Latest release: Jul 14, 2021
  • Number of updates: 12
  • Update frequency: every 134.0 days
  • Top authors: bibliatodo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 812 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/imagen-del-dia/imagen-del-dia.php+102
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼192.13ms] Passed 4 tests

Server-side resources used by Imagen del dia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼1.1012.38 ▼31.55
Dashboard /wp-admin1.76 ▼1.3010.16 ▼35.11
Posts /wp-admin/edit.php1.76 ▼1.3512.93 ▼43.70
Add New Post /wp-admin/post-new.php1.76 ▼3.6710.36 ▼647.94
Media Library /wp-admin/upload.php1.76 ▼1.2510.85 ▼41.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Imagen del dia
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲5815.25 ▼0.1310.29 ▲1.7595.56 ▼2.48
Dashboard /wp-admin2,944 ▲446.07 ▲0.11125.94 ▲1.06219.27 ▼14.56
Posts /wp-admin/edit.php2,739 ▼02.74 ▼0.0171.55 ▼0.78185.12 ▲11.37
Add New Post /wp-admin/post-new.php1,872 ▲25719.04 ▼2.36366.34 ▲79.35233.19 ▲6.23
Media Library /wp-admin/upload.php1,807 ▲35.06 ▼0.02153.44 ▼9.24262.27 ▲24.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/imagen-del-dia/imagen-del-dia.php+102
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_idd_imagendeldiawidget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/imagen-del-dia/imagen-del-dia.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: Please take inspiration from this readme.txt

imagen-del-dia/imagen-del-dia.php 92% from 13 tests

The main file in "Imagen del dia" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview 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.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin