Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.48ms] Passed 4 tests
Server-side resources used by Modern Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.61 ▼12.61 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.85 ▼2.05 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.53 ▼3.07 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 97.71 ▼4.20 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 34.68 ▲0.70 |
Modern Related Posts /wp-admin/options-general.php?page=whp_modern_related_posts | 3.33 | 32.72 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Modern Related Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.70 ▼0.68 | 2.07 ▼0.31 | 40.32 ▼13.27 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.04 | 111.11 ▲0.73 | 38.46 ▼0.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.00 | 39.29 ▼3.80 | 37.07 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.24 ▲0.17 | 626.12 ▲18.29 | 53.03 ▼6.72 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.09 | 97.05 ▼8.38 | 43.14 ▼1.44 |
Modern Related Posts /wp-admin/options-general.php?page=whp_modern_related_posts | 1,389 | 2.45 | 58.08 | 34.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× 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/modern-related-posts/modern-related-posts.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
modern-related-posts/modern-related-posts.php 92% from 13 tests
The main file in "Modern Related Posts" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin996 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 160 | 767 | 654 |
CSS | 1 | 20 | 12 | 181 |
PO File | 1 | 32 | 32 | 102 |
JavaScript | 1 | 0 | 0 | 47 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 81 | |
▷ Static methods | 1 | 1.23% |
▷ Public methods | 47 | 58.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 41.98% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
skins/owl-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |