Benchmarks
Plugin footprint 65% 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.04MB] [CPU: ▼5.76ms] Passed 4 tests
An overview of server-side resources used by Related Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.10 ▼1.28 |
Dashboard /wp-admin | 3.37 ▲0.02 | 57.27 ▼3.87 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 55.11 ▲6.52 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.19 ▼15.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.80 ▼2.31 |
Server storage [IO: ▲6.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 69 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_related_post_stats |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Related Post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲226 | 14.41 ▲0.07 | 1.77 ▲0.27 | 36.49 ▼1.95 |
Dashboard /wp-admin | 2,353 ▲175 | 6.21 ▲0.49 | 120.96 ▲9.39 | 40.83 ▼1.33 |
Posts /wp-admin/edit.php | 2,281 ▲181 | 3.33 ▲1.39 | 55.65 ▲16.88 | 35.91 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6,273 ▲4,747 | 26.20 ▲3.16 | 794.47 ▲110.24 | 35.63 ▼15.39 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.18 ▼0.00 | 83.21 ▼14.50 | 44.51 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_related_post_stats
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #8, #9 in related-post/assets to your readme.txt
related-post/related-post.php Passed 13 tests
"Related Post" version 2.0.55's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Display related posts under post content on single page and excerpt on archive pages.
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
No dangerous file extensions were detected22,525 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 11,697 |
PHP | 13 | 1,854 | 109 | 3,960 |
CSS | 6 | 1,858 | 59 | 3,789 |
JavaScript | 4 | 694 | 969 | 2,214 |
PO File | 2 | 377 | 422 | 854 |
XML | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 15.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.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 | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/front/css/images/arrow-prev.png | 2.80KB | 0.13KB | ▼ 95.30% |
assets/front/css/images/arrow-next.png | 2.81KB | 0.13KB | ▼ 95.34% |
assets/admin/images/no-thumb.png | 32.82KB | 13.55KB | ▼ 58.71% |