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
This plugin's installer ran successfully
Server metrics [RAM: ▲6.33MB] [CPU: ▼260.11ms] 75% from 4 tests
This is a short check of server-side resources used by Tabs with Recommended Posts (Widget)
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.33MB on /wp-admin/options-general.php?page=tabs_with_recommended_posts)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.85 ▲6.34 | 97.34 ▲47.07 |
Dashboard /wp-admin | 9.77 ▲6.37 | 70.13 ▲35.47 |
Posts /wp-admin/edit.php | 10.00 ▲6.36 | 74.28 ▲34.98 |
Add New Post /wp-admin/post-new.php | 13.24 ▲6.27 | 137.68 ▼1,147.72 |
Media Library /wp-admin/upload.php | 9.66 ▲6.36 | 61.37 ▲36.83 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 9.90 | 57.77 |
Tabs with Recommended Posts /wp-admin/options-general.php?page=tabs_with_recommended_posts | 9.74 | 86.09 |
Server storage [IO: ▲6.02MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 951 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_twrp_widget_cache |
New WordPress options |
---|
fs_gdpr |
twrp__cache_refreshed_timestamp |
fs_debug_mode |
twrp__aside_options |
widget_twrp_tabs_with_recommended_posts |
fs_active_plugins |
twrp__post_queries |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Tabs with Recommended Posts (Widget)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,511 ▲1,757 | 18.84 ▲2.88 | 7.06 ▼0.00 | 2.64 ▼0.96 |
Dashboard /wp-admin | 4,593 ▲1,735 | 7.65 ▲1.42 | 161.04 ▲21.49 | 215.00 ▲48.10 |
Posts /wp-admin/edit.php | 4,419 ▲1,731 | 4.83 ▲1.60 | 132.15 ▲66.40 | 358.33 ▲217.49 |
Add New Post /wp-admin/post-new.php | 3,351 ▲1,690 | 20.70 ▲4.25 | 500.20 ▲40.47 | 185.98 ▲24.83 |
Media Library /wp-admin/upload.php | 3,407 ▲1,706 | 6.47 ▲0.98 | 163.66 ▲5.12 | 207.24 ▲22.24 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 3,157 | 4.15 | 96.24 | 130.74 |
Tabs with Recommended Posts /wp-admin/options-general.php?page=tabs_with_recommended_posts | 15,373 | 5.58 | 113.50 | 275.91 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/tabs-with-posts/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 5 options in the database
- fs_accounts
- widget_twrp_tabs_with_recommended_posts
- fs_gdpr
- fs_active_plugins
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tabs-with-posts/freemius/templates/ajax-loader.php
- 128× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/tabs-with-posts/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/tabs-with-posts/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Interface 'TWRP\\Icons\\Icon_Definitions' not found in wp-content/plugins/tabs-with-posts/inc/Icons/Definitions/Comments_Disabled_Icons.php:8
- > PHP Fatal error
Uncaught Error: Class 'TWRP\\Article_Block\\Article_Block_Locked' not found in wp-content/plugins/tabs-with-posts/inc/Article_Block/Blocks/Modern_Article.php:15
- > PHP Fatal error
Trait 'TWRP\\Utils\\Helper_Trait\\After_Setup_Theme_Init_Trait' not found in wp-content/plugins/tabs-with-posts/inc/Enqueue_Scripts/Enqueue_Scripts.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'TWRP\\Plugins\\Known_Plugins\\Post_Views_Plugin' not found in wp-content/plugins/tabs-with-posts/inc/Plugins/Known_Plugins/Post_Views_Plugins/DFactory_Views_Plugin.php:13
- > PHP Fatal error
Uncaught Error: Interface 'TWRP\\Database\\Clean_Database' not found in wp-content/plugins/tabs-with-posts/inc/Database/General_Options.php:16
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/tabs-with-posts/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'TWRP\\Admin\\Tabs\\Query_Options\\Query_Setting_Display' not found in wp-content/plugins/tabs-with-posts/inc/Admin/Tabs/Query_Options/Query_Settings_Display/Post_Comments_Display.php:10
- > PHP Fatal error
Uncaught Error: Class 'TWRP\\Article_Block\\Article_Block' not found in wp-content/plugins/tabs-with-posts/inc/Article_Block/Blocks/Simple_Article.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Add a description for screenshot #0 in tabs-with-posts/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== tabs-with-posts ===
)
tabs-with-posts/tabs-with-posts.php 85% from 13 tests
"Tabs with Recommended Posts (Widget)" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/translations")
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected52,779 lines of code in 814 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 262 | 11,821 | 22,829 | 46,334 |
TypeScript | 28 | 881 | 729 | 2,731 |
Sass | 54 | 511 | 129 | 2,587 |
SVG | 451 | 450 | 2 | 913 |
JavaScript | 5 | 34 | 61 | 197 |
CSS | 14 | 0 | 0 | 17 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 22.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 5 | |
Traits | 4 | |
Classes | 233 | |
▷ Abstract classes | 18 | 7.73% |
▷ Concrete classes | 215 | 92.27% |
▷ Final classes | 0 | 0.00% |
Methods | 2,284 | |
▷ Static methods | 540 | 23.64% |
▷ Public methods | 1,648 | 72.15% |
▷ Protected methods | 300 | 13.13% |
▷ Private methods | 336 | 14.71% |
Functions | 100 | |
▷ Named functions | 95 | 95.00% |
▷ Anonymous functions | 5 | 5.00% |
Constants | 342 | |
▷ Global constants | 98 | 28.65% |
▷ Class constants | 244 | 71.35% |
▷ Public constants | 244 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plugin-avatars/YASR_Rating_Plugin.png | 2.37KB | 2.48KB | 0.00% |
assets/screenshot-6.png | 112.43KB | 34.51KB | ▼ 69.31% |
assets/plugin-avatars/DFactory_Views_Plugin.png | 3.31KB | 3.59KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/plugin-avatars/GamerZ_Views_Plugin.png | 0.97KB | 1.02KB | 0.00% |