Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/libro-de-visitas-guestbook/Class_Install_LdvJarim.php+105
Undefined variable: wp_error
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.75ms] Passed 4 tests
An overview of server-side resources used by LIBRO DE VISITAS - GUESTBOOK
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.83 ▼4.16 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.91 ▼1.15 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.08 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 81.09 ▼12.03 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 34.85 ▼5.67 |
libro_de_visitas /wp-admin/options-general.php?page=libro_de_visitas_list_options | 3.29 | 30.49 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables |
---|
libro_de_visitas_guestbook_table |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
libro_de_visitas_option |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for LIBRO DE VISITAS - GUESTBOOK
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.28 ▼1.13 | 1.63 ▼0.46 | 41.59 ▼8.27 |
Dashboard /wp-admin | 2,210 ▲22 | 5.80 ▲0.90 | 99.77 ▼13.63 | 39.73 ▼1.79 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.05 | 40.14 ▼1.07 | 35.83 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.89 ▲0.29 | 673.89 ▲13.92 | 61.67 ▲8.54 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▲0.02 | 96.98 ▼6.56 | 46.28 ▲3.26 |
libro_de_visitas /wp-admin/options-general.php?page=libro_de_visitas_list_options | 863 | 2.17 | 24.92 | 28.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- libro_de_visitas_guestbook_table
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Class_Base_Abstract_Guest_Book_LdvJarim' not found in wp-content/plugins/libro-de-visitas-guestbook/js-php-phpguestbook/Class_Guest_Book_LdvJarim.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/libro-de-visitas-guestbook/templates/libro-de-visitas-jarim1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/libro-de-visitas-guestbook/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #4 (Settings panel, showing the labels you can change.) image missing
- Screenshots: Please describe screenshot #2 in libro-de-visitas-guestbook/assets to your readme.txt
- Requires at least: Version format is invalid
libro-de-visitas-guestbook/index.php 92% from 13 tests
This is the main PHP file of "LIBRO DE VISITAS - GUESTBOOK" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("libro-de-visitas-guestbook.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected689 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 260 | 200 | 539 |
CSS | 1 | 45 | 21 | 149 |
JavaScript | 1 | 0 | 0 | 1 |
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.23 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.70% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
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/icon-45x45.png | 4.22KB | 2.21KB | ▼ 47.57% |