Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/mi-libreria/inc/prh-ml-admin.php+61
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼215.86ms] Passed 4 tests
Server-side resources used by Mi librería
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.85 ▼14.99 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.28 ▼39.26 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 5.42 ▼38.21 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.66 ▼761.27 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 9.83 ▼24.68 |
Mi librería /wp-admin/options-general.php?page=prh_ml | 1.76 | 5.66 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_wp_prh_ml |
prh_ml_options |
Browser metrics Passed 4 tests
Mi librería: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.79 ▲0.23 | 7.44 ▼1.03 | 45.15 ▼0.71 |
Dashboard /wp-admin | 3,015 ▲84 | 5.95 ▼0.02 | 135.04 ▼13.46 | 105.44 ▼5.65 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▲0.00 | 63.30 ▲2.15 | 89.93 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,606 ▼66 | 14.82 ▼4.04 | 365.05 ▼32.85 | 114.38 ▲0.59 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 4.97 ▼0.07 | 160.78 ▲14.51 | 128.01 ▲9.42 |
Mi librería /wp-admin/options-general.php?page=prh_ml | 1,279 | 2.47 | 61.98 | 90.71 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mi-libreria/inc/prh-ml-admin.php+61
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_wp_prh_ml
- prh_ml_options
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=prh_ml
- > Deprecated in wp-content/plugins/mi-libreria/inc/prh-ml-admin.php+61
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=prh_ml
- > Notice in wp-content/plugins/mi-libreria/inc/prh-ml-options.php+158
Undefined index: prh_ml_display
- > GET request to /wp-admin/options-general.php?page=prh_ml
- > Notice in wp-content/plugins/mi-libreria/inc/prh-ml-options.php+165
Undefined index: prh_ml_show_link
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-front-ajax.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-front.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-metabox-ajax.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mi-libreria/inc/prh-ml-metabox.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% 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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== mi-libreria ===
) - Screenshots: Add descriptions for screenshots #2, #3 in mi-libreria/assets to your readme.txt
mi-libreria/prh-mi-libreria.php 85% from 13 tests
The primary PHP file in "Mi librería" version 1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("mi-libreria.php" instead of "prh-mi-libreria.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 detected2,382 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 295 | 253 | 2,043 |
JavaScript | 3 | 141 | 106 | 199 |
CSS | 3 | 6 | 24 | 140 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 50.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 8.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 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
PNG images were not found in this plugin