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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.14 ▼33.41 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.43 ▼42.99 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.72 ▼40.64 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.40 ▼93.15 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 14.45 ▼0.17 | 1.79 ▼0.10 | 39.68 ▼9.59 |
Dashboard /wp-admin | 2,225 ▲37 | 4.83 ▼1.07 | 101.21 ▼9.63 | 38.15 ▼4.33 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.01 | 39.85 ▲0.94 | 32.04 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,424 ▼90 | 17.84 ▼3.64 | 546.87 ▼89.18 | 60.93 ▲9.28 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.24 ▲0.05 | 100.28 ▼1.37 | 43.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 3 | 16 | 208 |
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 code | 0.18 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin