10% libro-de-visitas-guestbook

Code Review | LIBRO DE VISITAS - GUESTBOOK

WordPress plugin LIBRO DE VISITAS - GUESTBOOK scored10%from 54 tests.

About plugin

  • Plugin page: libro-de-visitas-...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 21, 2015
  • Latest release: Jun 4, 2018
  • Number of updates: 42
  • Update frequency: every 27.9 days
  • Top authors: jarim (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /5,765 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.83 ▼4.16
Dashboard /wp-admin3.40 ▲0.1045.91 ▼1.15
Posts /wp-admin/edit.php3.51 ▲0.1646.08 ▼0.80
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.09 ▼12.03
Media Library /wp-admin/upload.php3.32 ▲0.1034.85 ▼5.67
libro_de_visitas /wp-admin/options-general.php?page=libro_de_visitas_list_options3.2930.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.131.63 ▼0.4641.59 ▼8.27
Dashboard /wp-admin2,210 ▲225.80 ▲0.9099.77 ▼13.6339.73 ▼1.79
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0540.14 ▼1.0735.83 ▲2.72
Add New Post /wp-admin/post-new.php1,517 ▲317.89 ▲0.29673.89 ▲13.9261.67 ▲8.54
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.0296.98 ▼6.5646.28 ▲3.26
libro_de_visitas /wp-admin/options-general.php?page=libro_de_visitas_list_options8632.1724.9228.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP6260200539
CSS14521149
JavaScript1001

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 code0.23
Average class complexity10.75
▷ Minimum class complexity6.00
▷ Maximum class complexity17.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/icon-45x45.png4.22KB2.21KB▼ 47.57%