Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼11.15ms] Passed 4 tests
Server-side resources used by OS Related Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 22.81 ▼19.81 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.55 ▼4.74 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.55 ▼7.74 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 81.43 ▼12.29 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.74 ▲1.38 |
About /wp-admin/admin.php?page=about_developer | 3.34 | 30.18 |
Related Posts /wp-admin/admin.php?page=os-related-posts | 3.34 | 30.58 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for OS Related Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲96 | 13.28 ▼1.10 | 3.03 ▲1.04 | 37.33 ▼10.14 |
Dashboard /wp-admin | 2,238 ▲50 | 4.87 ▼1.03 | 109.60 ▲8.71 | 44.63 ▲2.61 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.01 ▼0.05 | 39.20 ▼1.35 | 35.97 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.33 ▲0.09 | 603.48 ▼86.22 | 65.12 ▲4.03 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.23 ▲0.07 | 96.10 ▼3.48 | 40.92 ▼4.24 |
About /wp-admin/admin.php?page=about_developer | 1,000 | 2.05 | 26.70 | 26.40 |
Related Posts /wp-admin/admin.php?page=os-related-posts | 1,241 | 2.07 | 22.64 | 27.04 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
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 smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (OS Related Posts admin interface), #2 (OS Related Posts - Normal mode), #3 (OS Related Posts - Slider mode), #4 (OS Related Posts - Listing mode)
os-related-posts/os-related-posts.php Passed 13 tests
The entry point to "OS Related Posts" version 2.4 is a PHP file that has certain tags in its header comment area
128 characters long description:
The OS Related Posts feature scans all of your posts, analyzes them, and lets you show contextual posts under the same category.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,560 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 70 | 478 | 805 |
PHP | 1 | 124 | 154 | 475 |
CSS | 3 | 33 | 21 | 280 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.74MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 451.03KB | 144.76KB | ▼ 67.91% |
images/social.png | 1.61KB | 1.12KB | ▼ 30.45% |
bxslider/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
screenshot-4.png | 14.84KB | 6.03KB | ▼ 59.33% |
images/timeline.png | 0.36KB | 0.41KB | 0.00% |