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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.37MB] [CPU: ▼1.30ms] Passed 4 tests
An overview of server-side resources used by Related Posts by Taxonomy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 43.70 ▲9.05 |
Dashboard /wp-admin | 3.71 ▲0.40 | 51.49 ▲4.16 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 48.54 ▲0.75 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 82.98 ▼15.41 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.45 ▲5.31 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_related-posts-by-taxonomy |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
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 / | 2,792 ▲45 | 14.67 ▲0.43 | 1.68 ▲0.01 | 44.65 ▼0.67 |
Dashboard /wp-admin | 2,192 ▲11 | 5.60 ▼0.11 | 95.68 ▼5.76 | 47.82 ▲8.06 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▼0.02 | 40.20 ▼0.03 | 32.54 ▼6.23 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.26 | 668.34 ▲12.84 | 51.05 ▼6.14 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.01 | 101.00 ▲0.82 | 42.63 ▼0.69 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_related-posts-by-taxonomy
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/posts-per-page.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 Notice
Undefined variable: related_posts in wp-content/plugins/related-posts-by-taxonomy/templates/related-posts-thumbnails.php on line 34
- > PHP Notice
Undefined variable: style in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/post-types.php on line 2
- > PHP Notice
Undefined variable: style in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/image-size.php on line 1
- > 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: related_posts in wp-content/plugins/related-posts-by-taxonomy/templates/related-posts-posts.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/random.php: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/post-id.php:2
- > PHP Notice
Undefined variable: style in wp-content/plugins/related-posts-by-taxonomy/includes/assets/partials/widget/singular-template.php on line 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- 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
"Related Posts by Taxonomy" version 2.7.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
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
There were no executable files found in this plugin3,110 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 801 | 2,394 | 2,626 |
PO File | 5 | 150 | 171 | 428 |
JavaScript | 2 | 9 | 14 | 39 |
CSS | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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.94 |
▷ 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 | 88 | |
▷ Static methods | 2 | 2.27% |
▷ Public methods | 82 | 93.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.82% |
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
There were not PNG files found in your plugin