10% kin-direcciones

Code Review | Kin Direcciones

WordPress plugin Kin Direcciones scored 10% from 54 tests.

About plugin

  • Plugin page: kin-direcciones
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2014
  • Latest release: Dec 22, 2014
  • Number of updates: 20
  • Update frequency: every 0.3 days
  • Top authors: topherjamessf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,063 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/kin-direcciones/index.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; kin_direcciones has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.55ms] Passed 4 tests

An overview of server-side resources used by Kin Direcciones
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.14 ▼33.41
Dashboard /wp-admin2.10 ▼1.205.43 ▼42.99
Posts /wp-admin/edit.php2.10 ▼1.255.72 ▼40.64
Add New Post /wp-admin/post-new.php2.10 ▼3.787.40 ▼93.15
Media Library /wp-admin/upload.php2.10 ▼1.135.45 ▼30.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_kin_direcciones
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Kin Direcciones: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5914.45 ▼0.171.79 ▼0.1039.68 ▼9.59
Dashboard /wp-admin2,225 ▲374.83 ▼1.07101.21 ▼9.6338.15 ▼4.33
Posts /wp-admin/edit.php2,102 ▲131.99 ▼0.0139.85 ▲0.9432.04 ▼0.20
Add New Post /wp-admin/post-new.php1,424 ▼9017.84 ▼3.64546.87 ▼89.1860.93 ▲9.28
Media Library /wp-admin/upload.php1,407 ▲164.24 ▲0.05100.28 ▼1.3743.23 ▼0.56

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/kin-direcciones/index.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; kin_direcciones has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_kin_direcciones
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: current_user in wp-content/plugins/kin-direcciones/support.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kin-direcciones/index.php:20
    • > PHP Notice
      Trying to get property 'user_lastname' of non-object in wp-content/plugins/kin-direcciones/support.php on line 15
    • > PHP Notice
      Undefined variable: current_user in wp-content/plugins/kin-direcciones/support.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/kin-direcciones/support.php:19
    • > PHP Notice
      Trying to get property 'user_firstname' of non-object in wp-content/plugins/kin-direcciones/support.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

kin-direcciones/index.php 85% from 13 tests

"Kin Direcciones" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kin-direcciones.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2316208

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin