Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲1,137.16ms] 50% from 4 tests
An overview of server-side resources used by Related Post Inside Plugin
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 1,335.09ms on /wp-admin/admin.php?page=related-post-inside-plugin-recommended-plugins)
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 1,137.16ms on /wp-admin/admin.php?page=related-post-inside-plugin-recommended-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 631.04 ▲591.20 |
Dashboard /wp-admin | 3.61 ▲0.31 | 1,536.65 ▲1,488.54 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 1,300.58 ▲1,250.25 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 1,318.33 ▲1,223.59 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 1,522.14 ▲1,483.61 |
Related Post Inside /wp-admin/options-general.php?page=jeweltheme_rpi | 3.35 | 652.17 |
Recommended /wp-admin/admin.php?page=related-post-inside-plugin-recommended-plugins | 3.42 | 1,335.09 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 13 new options
New WordPress options |
---|
jlt_rpsi_sheet_promo_data_hash |
theysaidso_admin_options |
related_post_inside_plugin_version |
jlt_rpsi_sheet_promo_data |
widget_theysaidso_widget |
jlt_rpsi_notice_subscribe |
jlt_rpsi_activation_time |
jlt_rpsi_notice_what_we_collect |
widget_recent-posts |
jlt_rpsi_notice_ask_for_rating |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Related Post Inside Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲255 | 13.51 ▼1.08 | 7.40 ▲5.71 | 37.89 ▼4.40 |
Dashboard /wp-admin | 2,343 ▲163 | 5.72 ▲0.06 | 91.32 ▼0.46 | 40.07 ▼2.38 |
Posts /wp-admin/edit.php | 2,200 ▲97 | 2.14 ▲0.14 | 37.39 ▼1.12 | 33.42 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,617 ▲89 | 21.78 ▼1.60 | 608.63 ▼65.33 | 48.07 ▼0.81 |
Media Library /wp-admin/upload.php | 1,497 ▲97 | 4.22 ▼0.03 | 98.15 ▲2.91 | 41.90 ▼1.08 |
Related Post Inside /wp-admin/options-general.php?page=jeweltheme_rpi | 981 | 1.83 | 33.47 | 26.60 |
Recommended /wp-admin/admin.php?page=related-post-inside-plugin-recommended-plugins | 1,270 | 1.71 | 30.04 | 27.72 |
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
These items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- jlt_rpsi_notice_what_we_collect
- related_post_inside_plugin_version
- widget_recent-posts
- jlt_rpsi_sheet_promo_data_hash
- jlt_rpsi_notice_subscribe
- jlt_rpsi_notice_ask_for_rating
- jlt_rpsi_sheet_promo_data
- can_compress_scripts
- widget_theysaidso_widget
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jeweltheme_rpi
- > Notice in wp-content/plugins/related-post-inside-plugin/class-related-post-inside-plugin.php+171
Trying to access array offset on value of type bool
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
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JLTRPSI\\Libs\\Upgrader' not found in wp-content/plugins/related-post-inside-plugin/Inc/Classes/Upgrade_Plugin.php:12
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/related-post-inside-plugin/trunk/inc/easy-blocks.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/related-post-inside-plugin/related-post-inside-plugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/related-post-inside-plugin/trunk/inc/easy-blocks.php:9
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/related-post-inside-plugin/trunk/inc/easy-blocks.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/related-post-inside-plugin/trunk/inc/class-tgm-plugin-activation.php:2016
- > PHP Fatal error
Uncaught Error: Class 'JLTRPSI\\Libs\\RowLinks' not found in wp-content/plugins/related-post-inside-plugin/Inc/Classes/Row_Links.php:12
- > PHP Fatal error
Uncaught Error: Class 'JLTRPSI\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/related-post-inside-plugin/Inc/Classes/Notifications/Ask_For_Rating.php:12
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/related-post-inside-plugin/trunk/inc/easy-blocks.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'JLTRPSI\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/related-post-inside-plugin/Inc/Classes/Notifications/Subscribe.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=related-post-inside-plugin-recommended-plugins
- > Network (severe)
https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Related Post Inside Plugin), #2 (Related Post Inside Plugin look and feel)
related-post-inside-plugin/related-post-inside-plugin.php 77% from 13 tests
The main PHP file in "Related Post Inside Plugin" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 244 characters long)
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,758 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,484 | 3,056 | 4,998 |
CSS | 3 | 118 | 14 | 606 |
JavaScript | 2 | 15 | 9 | 154 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 33 | |
▷ Abstract classes | 4 | 12.12% |
▷ Concrete classes | 29 | 87.88% |
▷ Final classes | 1 | 3.45% |
Methods | 297 | |
▷ Static methods | 37 | 12.46% |
▷ Public methods | 271 | 91.25% |
▷ Protected methods | 24 | 8.08% |
▷ Private methods | 2 | 0.67% |
Functions | 24 | |
▷ Named functions | 20 | 83.33% |
▷ Anonymous functions | 4 | 16.67% |
Constants | 19 | |
▷ Global constants | 15 | 78.95% |
▷ Class constants | 4 | 21.05% |
▷ Public constants | 4 | 100.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
2 PNG files occupy 0.09MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) trunk/screenshot-1.png | 23.25KB | 0.00KB | ▼ 100.00% |
(invalid) trunk/screenshot-2.png | 68.11KB | 0.00KB | ▼ 100.00% |