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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.22 ▼40.07 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.51 ▼46.55 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.85 ▼41.12 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.51 ▼96.14 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.97 ▼31.49 |
Manage Quotes /wp-admin/admin.php?page=vrfr_managefrases | 2.05 | 6.41 |
Add new Quote /wp-admin/admin.php?page=vrfr_addnewitem | 2.05 | 5.95 |
Manage Classes /wp-admin/admin.php?page=vrfr_manageclases | 2.05 | 6.03 |
Manage Themes /wp-admin/admin.php?page=vrfr_managetemas | 2.05 | 5.85 |
Settings /wp-admin/admin.php?page=vrfr_managesettings | 2.05 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.65 ▼0.75 | 1.76 ▼0.09 | 41.85 ▼8.96 |
Dashboard /wp-admin | 2,311 ▲126 | 5.85 ▼0.03 | 96.56 ▼12.83 | 72.57 ▲26.97 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.13 | 34.69 ▼3.30 | 30.94 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 23.24 ▲5.15 | 793.99 ▲186.55 | 51.75 ▼10.46 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.18 ▼0.04 | 98.67 ▲2.61 | 64.04 ▲19.76 |
Manage Quotes /wp-admin/admin.php?page=vrfr_managefrases | 1,063 | 2.03 | 26.36 | 27.99 |
Add new Quote /wp-admin/admin.php?page=vrfr_addnewitem | 896 | 2.07 | 24.64 | 24.02 |
Manage Classes /wp-admin/admin.php?page=vrfr_manageclases | 955 | 2.02 | 25.01 | 26.84 |
Manage Themes /wp-admin/admin.php?page=vrfr_managetemas | 958 | 2.02 | 24.08 | 29.18 |
Settings /wp-admin/admin.php?page=vrfr_managesettings | 934 | 2.04 | 25.12 | 28.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 254 | 218 | 1,313 |
PO File | 1 | 225 | 410 | 296 |
CSS | 1 | 11 | 6 | 66 |
JavaScript | 1 | 6 | 15 | 33 |
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 code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 0.58KB | 0.41KB | ▼ 28.31% |