Benchmarks
Plugin footprint 48% 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.86MB] [CPU: ▲3.64ms] Passed 4 tests
This is a short check of server-side resources used by WP Tabs - Responsive Tabs Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.87 | 42.35 ▲1.62 |
Dashboard /wp-admin | 4.16 ▲0.85 | 50.41 ▲3.65 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 52.96 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.87 | 92.37 ▲6.94 |
Media Library /wp-admin/upload.php | 4.09 ▲0.85 | 45.48 ▲12.66 |
Tools /wp-admin/edit.php?post_type=sp_wp_tabs&page=tab_tools | 4.54 | 49.05 |
Help /wp-admin/edit.php?post_type=sp_wp_tabs&page=tabs_help | 4.54 | 48.11 |
Tab Groups /wp-admin/edit.php?post_type=sp_wp_tabs | 4.64 | 67.02 |
Add New /wp-admin/post-new.php?post_type=sp_wp_tabs | 4.69 | 64.44 |
Settings /wp-admin/edit.php?post_type=sp_wp_tabs&page=tabs_settings | 4.54 | 49.75 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wp_tabs_version |
widget_recent-posts |
wp_tabs_activation_date |
widget_recent-comments |
sp-tab__settings |
widget_theysaidso_widget |
widget_wptabs_widget |
wp_tabs_db_version |
wp_tabs_first_version |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Tabs - Responsive Tabs Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 14.15 ▼0.25 | 1.75 ▲0.27 | 29.71 ▼15.37 |
Dashboard /wp-admin | 2,311 ▲134 | 5.56 ▼0.07 | 85.89 ▼7.47 | 38.03 ▼0.52 |
Posts /wp-admin/edit.php | 2,225 ▲122 | 2.01 ▲0.05 | 40.10 ▼1.82 | 35.96 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,576 ▲42 | 23.30 ▲4.91 | 664.98 ▲69.53 | 39.04 ▼22.72 |
Media Library /wp-admin/upload.php | 1,522 ▲119 | 4.37 ▲0.18 | 99.20 ▲1.25 | 48.52 ▲5.34 |
Tools /wp-admin/edit.php?post_type=sp_wp_tabs&page=tab_tools | 1,469 | 5.77 | 74.76 | 85.07 |
Help /wp-admin/edit.php?post_type=sp_wp_tabs&page=tabs_help | 2,211 | 11.33 | 316.90 | 150.71 |
Tab Groups /wp-admin/edit.php?post_type=sp_wp_tabs | 1,583 | 5.60 | 63.52 | 30.74 |
Add New /wp-admin/post-new.php?post_type=sp_wp_tabs | 5,084 | 6.29 | 117.77 | 216.96 |
Settings /wp-admin/edit.php?post_type=sp_wp_tabs&page=tabs_settings | 1,429 | 5.57 | 64.95 | 79.56 |
Uninstaller [IO: ▲2.33MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsZombie WordPress options were found after uninstall: 14 options
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/wp-expand-tabs-free/plugin-main.php+46
Cannot redeclare is_wp_tabs_pro() (previously declared in wp-content/plugins/wp-expand-tabs-free/plugin-main.php:47)
- This plugin has failed uninstalling correctly, leaving 172 files (2.33MB) in the plugin directory
- (new file) admin/GutenbergBlock/assets/wp-tabs-icon.svg
- (new file) admin/ElementorAddons/class-wp-tabs-elementor-addons.php
- (new file) admin/class-wp-tabs-admin.php
- (new file) admin/class-wp-tabs-free-gutenberg-block.php
- (new file) admin/GutenbergBlock/class-wp-tabs-free-gutenberg-block-init.php
- (new file) admin/GutenbergBlock/build/index.asset.php
- (new file) admin/GutenbergBlock/assets/wp-tabs-block-preview.svg
- (new file) admin/ElementorAddons/widgets/shortcode.php
- (new file) admin/GutenbergBlock/build/index.js
- (new file) admin/css/elementor-icon.css
- ...
- wp_tabs_activation_date
- db_upgraded
- sp_wptabs_review_notice_dismiss
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- sp-tab__settings
- recovery_mode_email_last_sent
- widget_wptabs_widget
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-expand-tabs-free/public/partials/content.php
- > /wp-content/plugins/wp-expand-tabs-free/public/partials/tabs-navigation.php
- 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 116
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 180
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-expand-tabs-free/admin/ElementorAddons/class-wp-tabs-elementor-addons.php:110
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 216
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 235
- > PHP Notice
Undefined variable: sptpro_preloader in wp-content/plugins/wp-expand-tabs-free/public/preloader.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/wp-expand-tabs-free/includes/updates/update-2.2.0.php:8
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 204
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-expand-tabs-free/public/dynamic_style.php on line 170
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-expand-tabs-free/admin/preview/class-wp-tabs-preview.php:32
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-expand-tabs-free/plugin-main.php 85% from 13 tests
"WP Tabs - Responsive Tabs Plugin for WordPress" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-expand-tabs-free.php" instead of "plugin-main.php")
- Description: The description should be shorter than 140 characters (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected22,627 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 1,069 | 506 | 7,842 |
PHP | 73 | 1,878 | 3,385 | 7,200 |
JavaScript | 11 | 1,285 | 419 | 4,627 |
SVG | 52 | 0 | 4 | 2,958 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 22.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 5.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 30 | 11.63% |
▷ Public methods | 206 | 79.84% |
▷ Protected methods | 46 | 17.83% |
▷ Private methods | 6 | 2.33% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/images/Shaun-Snapp-min.png | 22.03KB | 22.05KB | 0.00% |
admin/partials/img/dashboard-logo.png | 1.85KB | 0.69KB | ▼ 62.76% |
admin/partials/models/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |