68% kin-visitantes

Code Review | Kin Visitantes

WordPress plugin Kin Visitantes scored 68% from 54 tests.

About plugin

  • Plugin page: kin-visitantes
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Dec 30, 2014
  • Number of updates: 63
  • Update frequency: every 0.4 days
  • Top authors: topherjamessf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,862 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.41ms] Passed 4 tests

Analyzing server-side resources used by Kin Visitantes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.81 ▼0.19
Dashboard /wp-admin3.27 ▼0.0441.04 ▼10.57
Posts /wp-admin/edit.php3.37 ▲0.0144.75 ▼4.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.10 ▼2.76
Media Library /wp-admin/upload.php3.24 ▲0.0139.55 ▲6.13
Visitantes /wp-admin/admin.php?page=kin-visitantes/dashboard.php3.2828.59
Support/Resources /wp-admin/admin.php?page=support_resources3.1834.64
Options /wp-admin/admin.php?page=options3.2028.07

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables
wp_kin_visitantes
New WordPress options
widget_recent-comments
theysaidso_admin_options
recovery_mode_email_last_sent
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
ignored_ip

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kin Visitantes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,183 ▼55213.28 ▼1.091.93 ▲0.1342.14 ▼3.11
Dashboard /wp-admin1,567 ▼6221.63 ▼3.2716.13 ▼93.4134.43 ▼5.10
Posts /wp-admin/edit.php2,122 ▲332.01 ▼0.0439.16 ▲5.4141.51 ▲7.26
Add New Post /wp-admin/post-new.php6,645 ▲5,13124.31 ▲6.59975.97 ▲290.5934.70 ▼19.87
Media Library /wp-admin/upload.php1,415 ▲274.21 ▼0.0396.53 ▼14.3368.08 ▲20.05
Visitantes /wp-admin/admin.php?page=kin-visitantes/dashboard.php7441.4410.0719.45
Support/Resources /wp-admin/admin.php?page=support_resources9072.0225.5228.81
Options /wp-admin/admin.php?page=options8232.2026.8225.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_kin_visitantes
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • ignored_ip
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=kin-visitantes/dashboard.php
    • > Error in wp-content/plugins/kin-visitantes/dashboard.php+38
    Uncaught Error: Call to undefined function mysql_num_rows() in wp-content/plugins/kin-visitantes/dashboard.php:38
    Stack trace:
    #0 wp-admin/admin.php(293): include()
    #1 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=support_resources
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_num_rows() in wp-content/plugins/kin-visitantes/dashboard.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/kin-visitantes/index.php:40

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: kin web design, analytics, google charts, statistics, widget...

kin-visitantes/index.php 92% from 13 tests

The main PHP file in "Kin Visitantes" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kin-visitantes.php" instead of "index.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
Good job! No executable or dangerous file extensions detected477 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2519474
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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/menu.png1.02KB0.24KB▼ 76.61%