Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.84ms] Passed 4 tests
A check of server-side resources used by Biblioteca Alcaide
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.01 ▼0.21 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.65 ▼1.42 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.46 ▼10.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.87 ▼11.20 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.55 ▲0.29 |
Agregar Libro /wp-admin/admin.php?page=submenu2 | 3.24 | 29.96 |
Biblioteca /wp-admin/admin.php?page=submenu | 3.24 | 27.92 |
Agregar Materia /wp-admin/admin.php?page=submenu3 | 3.26 | 28.44 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_info_alcaide_biblioteca_tabla_materias |
wp_info_alcaide_biblioteca |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Biblioteca Alcaide
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.18 ▼1.49 | 2.02 ▲0.10 | 35.63 ▼7.38 |
Dashboard /wp-admin | 2,237 ▲52 | 4.93 ▲0.06 | 109.72 ▼9.34 | 37.60 ▼10.80 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.06 ▲0.03 | 35.72 ▼5.07 | 32.07 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,558 ▲37 | 23.03 ▼0.17 | 662.61 ▲42.24 | 60.63 ▼5.78 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.18 ▼0.01 | 102.51 ▲2.53 | 48.38 ▲4.92 |
Agregar Libro /wp-admin/admin.php?page=submenu2 | 1,061 | 2.19 | 30.35 | 61.89 |
Biblioteca /wp-admin/admin.php?page=submenu | 938 | 2.19 | 28.45 | 27.27 |
Agregar Materia /wp-admin/admin.php?page=submenu3 | 953 | 2.20 | 26.71 | 29.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_info_alcaide_biblioteca_tabla_materias
- wp_info_alcaide_biblioteca
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=submenu2
- > Notice in wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin.php+216
Undefined variable: info_alcaide_biblioteca_autor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=submenu2
- > Notice in wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin.php+185
Undefined variable: info_alcaide_biblioteca_materia
- > GET request to /wp-admin/admin.php?page=submenu
- > Notice in wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin.php+16
Undefined index: borrar_libro
- > GET request to /wp-admin/admin.php?page=submenu
- > Notice in wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin.php+17
Undefined index: link
- > GET request to /wp-admin/admin.php?page=submenu
- > Notice in wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin.php+30
Undefined index: borrar_libro_ok
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/info-alcaide-biblioteca/admin/info_alcaide_biblioteca_admin_materias.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/info-alcaide-biblioteca/info_alcaide_biblioteca.php:44
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/info-alcaide-biblioteca/info_alcaide_biblioteca.php on line 21
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/info-alcaide-biblioteca/info_alcaide_biblioteca.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== info-alcaide-biblioteca ===
)
info-alcaide-biblioteca/info_alcaide_biblioteca.php 92% from 13 tests
"Biblioteca Alcaide" version 20.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("info-alcaide-biblioteca.php" instead of "info_alcaide_biblioteca.php")
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
Everything looks great! No dangerous files found in this plugin462 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 172 | 104 | 458 |
JavaScript | 2 | 0 | 6 | 3 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin