Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/floating-related-posts-by-views-or-publish-date/admin/floating-related-posts-by-views-or-date-admin.php+21
Undefined variable: addDefaultValues
Server metrics [RAM: ▼1.76MB] [CPU: ▼50.40ms] Passed 4 tests
Analyzing server-side resources used by Floating Related Posts by Views or Publish Date
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.97 ▼2.45 |
Dashboard /wp-admin | 2.20 ▼1.15 | 13.02 ▼47.83 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 7.32 ▼41.48 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 8.86 ▼87.69 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 8.47 ▼24.58 |
Floating Related Posts by Views or Date /wp-admin/options-general.php?page=floating-related-posts-by-views-or-date | 2.20 | 8.05 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Floating Related Posts by Views or Publish Date: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲48 | 14.25 ▼0.34 | 1.86 ▲0.11 | 40.88 ▼1.42 |
Dashboard /wp-admin | 2,199 ▲19 | 5.52 ▼0.11 | 81.38 ▼3.40 | 39.05 ▲0.37 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.01 | 38.63 ▲5.47 | 36.55 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.66 ▼4.67 | 629.51 ▼41.13 | 65.69 ▲11.68 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▲0.01 | 91.66 ▼5.72 | 41.04 ▼3.82 |
Floating Related Posts by Views or Date /wp-admin/options-general.php?page=floating-related-posts-by-views-or-date | 1,036 | 2.00 | 23.47 | 27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/floating-related-posts-by-views-or-publish-date/admin/floating-related-posts-by-views-or-date-admin.php+21
Undefined variable: addDefaultValues
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=floating-related-posts-by-views-or-date
- > Notice in wp-content/plugins/floating-related-posts-by-views-or-publish-date/admin/floating-related-posts-by-views-or-date-admin.php+240
Undefined variable: addDefaultValues
- > GET request to /wp-admin/options-general.php?page=floating-related-posts-by-views-or-date
- > Notice in wp-content/plugins/floating-related-posts-by-views-or-publish-date/admin/floating-related-posts-by-views-or-date-admin.php+22
Undefined variable: dirPathPlugin
- > GET request to /wp-admin/options-general.php?page=floating-related-posts-by-views-or-date
- > Notice in wp-content/plugins/floating-related-posts-by-views-or-publish-date/admin/floating-related-posts-by-views-or-date-admin.php+22
Undefined variable: DirPlugin
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 shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: related posts, free related posts, floating related posts, related, floating...
floating-related-posts-by-views-or-publish-date/floating-related-posts-by-views-or-date.php 69% from 13 tests
The main PHP file in "Floating Related Posts by Views or Publish Date" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "5.6 or later")
- Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "5.6")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("floating-related-posts-by-views-or-publish-date.php" instead of "floating-related-posts-by-views-or-date.php")
- Description: Keep the plugin description shorter than 140 characters (currently 291 characters long)
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 detected1,167 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 75 | 215 | 651 |
PO File | 5 | 200 | 210 | 515 |
CSS | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.86MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 77.64KB | 82.47KB | 0.00% |
assets/screenshot-1.png | 105.12KB | 67.81KB | ▼ 35.49% |
assets/screenshot-2.png | 16.00KB | 15.72KB | ▼ 1.71% |
assets/icon-128x128.png | 40.37KB | 9.02KB | ▼ 77.66% |
admin/assets/background-colors-popup.png | 65.85KB | 12.52KB | ▼ 80.98% |