10% contenido-del-dia

Code Review | Contenido del dia

WordPress plugin Contenido del dia scored10%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/contenido-del-dia/contenido-del-dia.php+102
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.68ms] Passed 4 tests

A check of server-side resources used by Contenido del dia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.32 ▼32.87
Dashboard /wp-admin2.08 ▼1.227.00 ▼43.47
Posts /wp-admin/edit.php2.09 ▼1.276.64 ▼48.38
Add New Post /wp-admin/post-new.php2.08 ▼3.806.05 ▼90.00
Media Library /wp-admin/upload.php2.09 ▼1.144.74 ▼30.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_cdd_contenidodeldiawidget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Contenido del dia
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.67 ▼0.0440.68 ▼0.50
Dashboard /wp-admin2,198 ▲215.59 ▼0.1284.97 ▼6.7539.54 ▲0.29
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0138.15 ▼0.6535.72 ▼5.48
Add New Post /wp-admin/post-new.php1,526 ▼1123.12 ▲5.07659.60 ▲27.7953.46 ▼15.54
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.0995.94 ▼12.6541.92 ▼7.43

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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/contenido-del-dia/contenido-del-dia.php+102
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_cdd_contenidodeldiawidget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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/contenido-del-dia/contenido-del-dia.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

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
Attributes that require attention: The official readme.txt might help

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

The entry point to "Contenido del dia" version 2.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 173 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
Everything looks great! No dangerous files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin