Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.91MB] [CPU: ▼175.42ms] Passed 4 tests
Server-side resources used by Related Posts via Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 32.36 ▼6.37 |
Dashboard /wp-admin | 2.74 ▼0.32 | 19.67 ▼33.49 |
Posts /wp-admin/edit.php | 2.74 ▼0.37 | 21.96 ▼22.05 |
Add New Post /wp-admin/post-new.php | 2.74 ▼2.69 | 21.07 ▼628.43 |
Media Library /wp-admin/upload.php | 2.74 ▼0.26 | 15.87 ▼17.70 |
Related Posts via Categories /wp-admin/options-general.php?page=related-posts-via-categories | 2.74 | 22.83 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
related_posts_via_categories |
Browser metrics Passed 4 tests
Related Posts via Categories: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.04 ▲0.37 | 12.48 ▲2.07 | 47.33 ▲0.13 |
Dashboard /wp-admin | 2,972 ▲41 | 5.96 ▲0.03 | 147.04 ▼5.30 | 114.71 ▼2.83 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.01 | 61.42 ▼6.07 | 86.86 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,618 ▼2,071 | 21.37 ▲6.33 | 289.83 ▼181.70 | 103.48 ▼2.80 |
Media Library /wp-admin/upload.php | 1,824 ▲14 | 5.03 ▲0.04 | 161.66 ▲7.62 | 106.54 ▼7.28 |
Related Posts via Categories /wp-admin/options-general.php?page=related-posts-via-categories | 1,849 | 2.13 | 59.29 | 110.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method relatedPostsViaCategories_admin::add() should not be called statically
- This plugin does not fully uninstall, leaving 1 option in the database
- related_posts_via_categories
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=related-posts-via-categories
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method relatedPostsViaCategories_admin::add() should not be called statically
- > GET request to /wp-admin/options-general.php?page=related-posts-via-categories
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method relatedPostsViaCategories_admin::head() should not be called statically
- > GET request to /wp-admin/options-general.php?page=related-posts-via-categories
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method relatedPostsViaCategories_admin::admin() should not be called statically
- > GET request to /wp-admin/options-general.php?page=related-posts-via-categories
- > Notice in wp-content/plugins/related-posts-via-categories/includes/admin.php+59
Undefined index: submit
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-posts-via-categories/includes/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/related-posts-via-categories/related-posts-via-categories.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Display ( If the user is not logged in. )), #2 (Display ( If the user is logged in. )), #3 (Settings » Related Posts via Categories), #4 (Related Posts via Categories - Options » Display), #5 (Related Posts via Categories - Options » Order), #6 (Related Posts via Categories - Options » Exclude), #7 (Related Posts via Categories - Options » Post types), #8 (Related Posts via Categories - Options » Promotion)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
related-posts-via-categories/related-posts-via-categories.php 92% from 13 tests
"Related Posts via Categories" version 2.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin859 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 88 | 19 | 588 |
PO File | 3 | 120 | 12 | 271 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 17.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 files were detected