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.21MB] [CPU: ▼8.80ms] Passed 4 tests
This is a short check of server-side resources used by Manual Related Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 48.95 ▲5.89 |
Dashboard /wp-admin | 3.51 ▲0.20 | 48.16 ▲1.88 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.86 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 90.80 ▼40.42 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.03 ▲2.21 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
related_du_show |
widget_recent-posts |
related_du_list |
db_upgraded |
related_show |
theysaidso_admin_options |
widget_related_widget |
related_list |
... |
Browser metrics Passed 4 tests
Manual Related Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 13.43 ▼0.83 | 1.85 ▼0.42 | 43.61 ▼4.66 |
Dashboard /wp-admin | 2,218 ▲33 | 5.02 ▼0.88 | 116.39 ▲9.44 | 43.86 ▲2.40 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.27 ▲0.30 | 34.35 ▼5.73 | 32.81 ▼2.52 |
Add New Post /wp-admin/post-new.php | 6,506 ▲4,987 | 23.08 ▼0.41 | 878.80 ▲267.34 | 59.13 ▼1.37 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.34 ▲0.10 | 102.21 ▼1.03 | 42.11 ▲0.06 |
Related Posts /wp-admin/related.php | 26 | 0.44 | 0.07 | 20.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 12 options
- related_double_plugin
- related_du_list
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- related_du_show
- related_list
- related_show
- widget_related_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related/widgets/related-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related/adminpages/page-related.php:14
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/related/related.php:464
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related/widgets/related_du-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related/adminpages/page-related_du.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related/related_du.php:430
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/related.php
- > Network (severe)
wp-admin/related.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: related posts, related post, related, linked posts, linked post
related/related.php Passed 13 tests
"Manual Related Posts" version 3.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
A simple 'related posts' plugin that lets you select related posts manually.
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
Good job! No executable or dangerous file extensions detected3,241 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 290 | 297 | 1,419 |
JavaScript | 4 | 134 | 40 | 1,345 |
CSS | 4 | 96 | 59 | 477 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |