Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/kindred-posts/kindred-posts-lib.php+461
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.65ms] Passed 4 tests
A check of server-side resources used by Kindred Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.26 ▼33.59 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.52 ▼41.57 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.43 ▼44.80 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.41 ▼94.65 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.62 ▼29.76 |
Kindred Posts /wp-admin/options-general.php?page=kindred-posts | 2.05 | 5.93 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_kindred_posts_visits |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
kp_DbVersion |
widget_recent-comments |
kp_OptionsNamespaced |
db_upgraded |
widget_kp_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kindred Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.18 ▼0.19 | 1.86 ▼0.06 | 49.00 ▲5.07 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.08 | 86.72 ▼2.98 | 42.94 ▲6.55 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 36.56 ▼0.73 | 30.18 ▼7.78 |
Add New Post /wp-admin/post-new.php | 1,529 ▲4 | 23.63 ▲0.63 | 618.97 ▲1.58 | 71.21 ▲0.79 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▼0.01 | 101.89 ▲0.80 | 43.73 ▼3.38 |
Kindred Posts /wp-admin/options-general.php?page=kindred-posts | 1,182 | 2.01 | 22.89 | 31.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/kindred-posts/kindred-posts-lib.php+461
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_kindred_posts_visits
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_kp_widget
- widget_recent-comments
- theysaidso_admin_options
- kp_OptionsNamespaced
- can_compress_scripts
- kp_DbVersion
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=kindred-posts
- > Deprecated in wp-content/plugins/kindred-posts/kindred-posts-lib.php+461
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=kindred-posts
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kindred-posts/tests/tests-loader.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/kindred-posts/kindred-posts-config.php on line 17
- > PHP Warning
include_once(..\\..\\..\\..\\..\\wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kindred-posts/theme/templates.php:93
- > PHP Warning
include_once(): Failed opening '..\\..\\kindred-posts-index.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php on line 4
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kindred-posts/kindred-posts-index.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kindred-posts/classes/widget.php:5
- > PHP Warning
include_once(..\\..\\kindred-posts-index.php): failed to open stream: No such file or directory in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php:9
- > PHP Warning
include_once(): Failed opening '..\\..\\..\\..\\..\\wp-load.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/kindred-posts/tests/scripts/visit-data.php on line 3
- > 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 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
10 plugin tags: artificial intelligence, analytics, similar posts, data mining, related posts...
kindred-posts/kindred-posts-index.php 92% from 13 tests
The main file in "Kindred Posts" v. 1.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kindred-posts.php" instead of "kindred-posts-index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,679 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 623 | 1,020 | 2,679 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 9 | 10.47% |
▷ Public methods | 86 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/qmark.png | 0.34KB | 0.19KB | ▼ 45.89% |
screenshot-1.png | 95.94KB | 54.31KB | ▼ 43.40% |
images/icon.png | 1.88KB | 1.51KB | ▼ 19.84% |
images/horz.png | 0.33KB | 0.17KB | ▼ 48.54% |
images/vert.png | 0.40KB | 0.17KB | ▼ 58.88% |