Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.74ms] Passed 4 tests
A check of server-side resources used by The Related Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.69 ▼6.27 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.76 ▼16.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.41 ▲4.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.32 ▼21.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.06 ▼2.89 |
Related Posts /wp-admin/plugins.php?page=alobaidi_related_posts_settings | 3.23 | 30.82 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
The Related Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 14.48 ▲0.19 | 1.99 ▼0.04 | 43.16 ▼2.36 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 118.66 ▲0.61 | 43.98 ▲0.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.01 | 40.16 ▲2.81 | 34.66 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 18.17 ▲0.51 | 611.62 ▼78.53 | 49.99 ▼2.00 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.09 | 98.68 ▼5.10 | 41.27 ▼3.27 |
Related Posts /wp-admin/plugins.php?page=alobaidi_related_posts_settings | 897 | 2.19 | 26.86 | 29.73 |
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 detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/the-related-posts/settings.php
- > /wp-content/plugins/the-related-posts/the-related-posts.php
- > /wp-content/plugins/the-related-posts/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (37 tag instead of maximum 10)
the-related-posts/the-related-posts.php Passed 13 tests
The entry point to "The Related Posts" version 1.0.0 is a PHP file that has certain tags in its header comment area
98 characters long description:
Add related posts after content automatically, related posts by tags, full customize, easy to use.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected196 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 26 | 196 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
There were not PNG files found in your plugin