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
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼292.20ms] Passed 4 tests
This is a short check of server-side resources used by Related Posts by Taxonomy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.41 | 55.64 ▲6.20 |
Dashboard /wp-admin | 3.75 ▲0.34 | 35.71 ▲0.75 |
Posts /wp-admin/edit.php | 3.98 ▲0.34 | 40.85 ▲1.54 |
Add New Post /wp-admin/post-new.php | 7.35 ▲0.36 | 101.46 ▼1,173.96 |
Media Library /wp-admin/upload.php | 3.70 ▲0.40 | 26.57 ▲2.87 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_related-posts-by-taxonomy |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Related Posts by Taxonomy
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲42 | 16.22 ▲0.20 | 6.04 ▼0.54 | 2.95 ▲0.42 |
Dashboard /wp-admin | 2,895 ▲34 | 6.05 ▼0.10 | 121.05 ▼15.36 | 164.33 ▲0.41 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 64.71 ▲0.98 | 139.93 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 21.18 ▲4.97 | 434.40 ▲0.18 | 172.12 ▲12.10 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.02 | 144.53 ▼1.46 | 188.48 ▲4.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_related-posts-by-taxonomy
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 take a closer look at the following
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/taxonomies.php:10
- > PHP Notice
Undefined variable: style in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/format.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/format.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/taxonomies.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/title.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/post-types.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function km_rpbt_no_posts_found_notice() in wp-content/plugins/related-posts-by-taxonomy/templates/related-posts-links.php:49
- > PHP Notice
Undefined variable: i in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/taxonomies.php on line 2
- > PHP Notice
Undefined variable: related_posts in wp-content/plugins/related-posts-by-taxonomy/templates/related-posts-excerpts.php on line 30
- > PHP Notice
Undefined variable: style in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/post-types.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
related-posts-by-taxonomy/related-posts-by-taxonomy.php 92% from 13 tests
The main PHP script in "Related Posts by Taxonomy" version 2.7.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,093 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 798 | 2,381 | 2,609 |
PO File | 5 | 150 | 171 | 428 |
JavaScript | 2 | 10 | 14 | 39 |
CSS | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.43 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 2 | 2.30% |
▷ Public methods | 81 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.90% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected