Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.12MB] [CPU: ▼12.41ms] Passed 4 tests
Analyzing server-side resources used by LH Jetpack Related Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.31 ▼14.60 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.86 ▼4.91 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.73 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.21 ▼0.68 | 65.33 ▼27.22 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.40 ▲2.65 |
Related Posts /wp-admin/options-general.php?page=lh-jetpack-related-posts/lh-jetpack-related-posts.php | 3.30 | 37.15 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LH Jetpack Related Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.64 ▼0.74 | 1.67 ▼0.23 | 39.41 ▼13.83 |
Dashboard /wp-admin | 2,210 ▲19 | 5.84 ▲0.97 | 100.74 ▼8.42 | 44.09 ▼0.76 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 35.03 ▼0.11 | 35.85 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.13 ▼0.23 | 670.00 ▼12.47 | 60.51 ▼7.43 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▼0.17 | 103.66 ▲0.99 | 44.61 ▼4.73 |
Related Posts /wp-admin/options-general.php?page=lh-jetpack-related-posts/lh-jetpack-related-posts.php | 1,024 | 3.25 | 56.32 | 26.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-jetpack-related-posts/lh-jetpack-related-posts.php
- > Notice in wp-content/plugins/lh-jetpack-related-posts/partials/option-settings.php+66
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-jetpack-related-posts/lh-jetpack-related-posts.php
- > Warning in wp-content/plugins/lh-jetpack-related-posts/partials/option-settings.php+45
in_array() expects parameter 2 to be array, null given
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-jetpack-related-posts/lh-jetpack-related-posts.php:435
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-jetpack-related-posts/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: jetpack, related posts, posts 2 posts
lh-jetpack-related-posts/lh-jetpack-related-posts.php 92% from 13 tests
Analyzing the main PHP file in "LH Jetpack Related Posts" version 1.07
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin296 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 251 | 26 | 273 |
JavaScript | 1 | 6 | 6 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin