10% vr-frases

Code Review | VR-Frases (collect & share quotes)

WordPress plugin VR-Frases (collect & share quotes) scored 10% from 54 tests.

About plugin

  • Plugin page: vr-frases
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2007
  • Latest release: Mar 11, 2017
  • Number of updates: 85
  • Update frequency: every 40.7 days
  • Top authors: vruizg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 7,380 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/vr-frases/includes/vr-frases-widgets.php+161
    Function create_function() is deprecated

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

A check of server-side resources used by VR-Frases (collect & share quotes)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.22 ▼40.07
Dashboard /wp-admin2.05 ▼1.265.51 ▼46.55
Posts /wp-admin/edit.php2.05 ▼1.316.85 ▼41.12
Add New Post /wp-admin/post-new.php2.05 ▼3.845.51 ▼96.14
Media Library /wp-admin/upload.php2.05 ▼1.184.97 ▼31.49
Manage Quotes /wp-admin/admin.php?page=vrfr_managefrases2.056.41
Add new Quote /wp-admin/admin.php?page=vrfr_addnewitem2.055.95
Manage Classes /wp-admin/admin.php?page=vrfr_manageclases2.056.03
Manage Themes /wp-admin/admin.php?page=vrfr_managetemas2.055.85
Settings /wp-admin/admin.php?page=vrfr_managesettings2.055.60

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: 3 new tables, 9 new options
New tables
wp_vr_fr_temas
wp_vr_fr_frases
wp_vr_fr_clases
New WordPress options
vr_frases_version
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_vr_frases_widget
widget_recent-comments
db_upgraded
can_compress_scripts
vr_frases_options

Browser metrics Passed 4 tests

A check of browser resources used by VR-Frases (collect & share quotes)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.65 ▼0.751.76 ▼0.0941.85 ▼8.96
Dashboard /wp-admin2,311 ▲1265.85 ▼0.0396.56 ▼12.8372.57 ▲26.97
Posts /wp-admin/edit.php2,132 ▲432.00 ▼0.1334.69 ▼3.3030.94 ▼2.95
Add New Post /wp-admin/post-new.php1,552 ▲1023.24 ▲5.15793.99 ▲186.5551.75 ▼10.46
Media Library /wp-admin/upload.php1,422 ▲314.18 ▼0.0498.67 ▲2.6164.04 ▲19.76
Manage Quotes /wp-admin/admin.php?page=vrfr_managefrases1,0632.0326.3627.99
Add new Quote /wp-admin/admin.php?page=vrfr_addnewitem8962.0724.6424.02
Manage Classes /wp-admin/admin.php?page=vrfr_manageclases9552.0225.0126.84
Manage Themes /wp-admin/admin.php?page=vrfr_managetemas9582.0224.0829.18
Settings /wp-admin/admin.php?page=vrfr_managesettings9342.0425.1228.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/vr-frases/includes/vr-frases-widgets.php+161
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managesettings
    • > Deprecated in wp-content/plugins/vr-frases/includes/vr-frases-widgets.php+161
    Function create_function() is deprecated
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managesettings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in VR_Frases_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managetemas
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+386
    Undefined index: accion
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managetemas
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+384
    Undefined index: pagina
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+82
    Array to string conversion
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+87
    Undefined index: aut
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+96
    Undefined variable: frase
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+96
    Undefined variable: autor
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+113
    Undefined variable: categoria
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+55
    Undefined variable: lista
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+55
    Undefined variable: groupby
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+183
    Undefined variable: list_clases
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+172
    Undefined variable: list_temas
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+160
    Undefined variable: pagina
    • > GET request to /wp-admin/admin.php?page=vrfr_managefrases
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-functions.php+160
    Undefined variable: paginas
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vrfr_managetemas
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+422
    Undefined variable: class
    • > GET request to /wp-admin/admin.php?page=vrfr_addnewitem
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+212
    Undefined variable: msg
    • > GET request to /wp-admin/admin.php?page=vrfr_addnewitem
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+223
    Undefined index: frase
    • > GET request to /wp-admin/admin.php?page=vrfr_addnewitem
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+227
    Undefined index: autor
    • > GET request to /wp-admin/admin.php?page=vrfr_addnewitem
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+236
    Undefined index: idclase
    • > GET request to /wp-admin/admin.php?page=vrfr_addnewitem
    • > Notice in wp-content/plugins/vr-frases/includes/vr-frases-admin.php+252
    Undefined index: idtema

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/vr-frases/vr-frases.php on line 42
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/vr-frases/vr-frases.php on line 42
    • > PHP Notice
      Undefined property: stdClass::$prefix in wp-content/plugins/vr-frases/vr-frases.php on line 44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vr-frases/vr-frases.php:64
    • > PHP Notice
      Undefined property: stdClass::$prefix in wp-content/plugins/vr-frases/vr-frases.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vr-frases/includes/vr-frases-shortcodes.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vr-frases/includes/vr-frases-widgets.php:11

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: citas, frases, random, quotes

vr-frases/vr-frases.php Passed 13 tests

The main file in "VR-Frases (collect & share quotes)" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Creates an manage a list of quotes and authors. Display options for your template or sidebar (widget).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,708 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP82542181,313
PO File1225410296
CSS111666
JavaScript161533

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/menu.png0.58KB0.41KB▼ 28.31%