Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/horariodeapertura24/wp-horariodeapertura24.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; Horariodeapertura24ScriptWidget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.63ms] Passed 4 tests
A check of server-side resources used by Horario de apertura 24
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.42 ▼31.99 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.18 ▼41.00 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.27 ▼41.56 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.67 ▼83.98 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.89 ▼27.69 |
WP horariodeapertura24 Script /wp-admin/options-general.php?page=wp_horariodeapertura24_script | 2.10 | 5.33 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_horariodeapertura24_script |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Horario de apertura 24
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.39 ▼1.02 | 2.17 ▲0.42 | 36.43 ▼9.14 |
Dashboard /wp-admin | 2,219 ▲30 | 4.90 ▼0.10 | 97.11 ▼15.99 | 36.89 ▼3.86 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.04 ▲0.04 | 33.38 ▼3.10 | 35.02 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 18.17 ▼4.81 | 607.08 ▼37.60 | 49.43 ▼11.58 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▼0.05 | 97.52 ▲2.42 | 41.13 ▼0.33 |
WP horariodeapertura24 Script /wp-admin/options-general.php?page=wp_horariodeapertura24_script | 699 | 1.54 | 6.57 | 19.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/horariodeapertura24/wp-horariodeapertura24.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; Horariodeapertura24ScriptWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_horariodeapertura24_script
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp_horariodeapertura24_script
- > Deprecated in wp-content/plugins/horariodeapertura24/wp-horariodeapertura24.php+77
Methods with the same name as their class will not be constructors in a future version of PHP; Horariodeapertura24ScriptWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wp_horariodeapertura24_script
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Horariodeapertura24ScriptWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=wp_horariodeapertura24_script
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/horariodeapertura24/templates/settings.php on line 8 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/horariodeapertura24/templates/settings.php(8): do_settings_fields()
#1 wp-content/plugins/horariodeapertura24/wp-horariodeapertura24.php(52): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WP_Horariodeapertura24_Script->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/horariodeapertura24/wp-horariodeapertura24.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/horariodeapertura24/templates/settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 25 tag instead of maximum 10
- Donate link: Invalid URI ("gracias, no es necesario")
horariodeapertura24/wp-horariodeapertura24.php 92% from 13 tests
"Horario de apertura 24" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("horariodeapertura24.php" instead of "wp-horariodeapertura24.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,611 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 4 | 21 | 813 |
CSS | 3 | 17 | 0 | 516 |
PHP | 2 | 51 | 11 | 282 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
templates/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
templates/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
templates/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
templates/images/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |