10% ultimas-noticias

Code Review | Ultimas Noticias

WordPress plugin Ultimas Noticias scored10%from 54 tests.

About plugin

  • Plugin page: ultimas-noticias
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 14, 2021
  • Number of updates: 9
  • Update frequency: every 168.3 days
  • Top authors: bibliatodo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,473 total downloads

Benchmarks

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
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ultimas-noticias/unb-ultimas-noticias.php+101
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼62.11ms] Passed 4 tests

Analyzing server-side resources used by Ultimas Noticias
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.445.68 ▼40.74
Dashboard /wp-admin2.08 ▼1.265.54 ▼52.83
Posts /wp-admin/edit.php2.09 ▼1.315.51 ▼51.77
Add New Post /wp-admin/post-new.php2.08 ▼3.845.58 ▼103.10
Media Library /wp-admin/upload.php2.08 ▼1.194.90 ▼28.17

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_unb_ultimas_noticiaswidget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimas Noticias
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.201.78 ▼0.0244.02 ▲0.50
Dashboard /wp-admin2,195 ▲185.64 ▼0.0494.80 ▼0.9442.85 ▼1.51
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0333.62 ▼4.6035.23 ▼0.62
Add New Post /wp-admin/post-new.php1,526 ▼923.68 ▲5.47677.02 ▲42.4557.59 ▼8.10
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0698.99 ▲0.2946.31 ▲0.37

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/ultimas-noticias/unb-ultimas-noticias.php+101
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_unb_ultimas_noticiaswidget
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ultimas-noticias/unb-ultimas-noticias.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3 in ultimas-noticias/assets to your readme.txt
  • Screenshots: Screenshot #1 (Esto es lo que Últimas Noticias se vería de forma predeterminada. Si deseas algun cambio en especifico favor contactarnos, y gustosamente le ayudaremos..2. Un sitio de WordPress con el plugin en la barra lateral.3. Si deseas esta apariencia puedes obtener gratuitamente copiando un codigo iframe en esta url https://www.bibliatodo.com/recursos/) image required
The official readme.txt might help

ultimas-noticias/unb-ultimas-noticias.php 92% from 13 tests

Analyzing the main PHP file in "Ultimas Noticias" version 2.1
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimas-noticias.php" instead of "unb-ultimas-noticias.php")

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
No dangerous file extensions were detected1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin