Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲6.33ms] Passed 4 tests
Server-side resources used by WP Tabby - Ultimate WP Tabs Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 54.11 ▲5.64 |
Dashboard /wp-admin | 4.02 ▲0.71 | 65.64 ▲8.78 |
Posts /wp-admin/edit.php | 4.07 ▲0.70 | 59.86 ▲9.13 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 106.13 ▲4.30 |
Media Library /wp-admin/upload.php | 3.88 ▲0.64 | 46.37 ▲6.59 |
Woo Tabs /wp-admin/edit.php?post_type=ag_wp_tabby&page=woo-tabs | 6.32 | 54.68 |
Tab Groups /wp-admin/edit.php?post_type=ag_wp_tabby | 6.40 | 62.08 |
Add New /wp-admin/post-new.php?post_type=ag_wp_tabby | 6.38 | 71.25 |
Settings /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings | 6.32 | 47.27 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 103 new files
Database: no new tables, 8 new options
New WordPress options |
---|
agwp_tabby_settings_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
agwp_tabby_woo_options |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Tabby - Ultimate WP Tabs Plugin for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.40 ▼0.98 | 8.72 ▲6.57 | 37.87 ▼7.67 |
Dashboard /wp-admin | 2,230 ▲53 | 5.66 ▼0.06 | 94.75 ▼1.18 | 41.99 ▼1.62 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.99 ▲0.03 | 40.28 ▲1.80 | 36.24 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 22.99 ▼0.27 | 605.77 ▼80.37 | 51.29 ▲0.27 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.17 ▲0.01 | 105.59 ▼1.96 | 43.82 ▼3.66 |
Woo Tabs /wp-admin/edit.php?post_type=ag_wp_tabby&page=woo-tabs | 1,292 | 5.49 | 77.46 | 32.78 |
Tab Groups /wp-admin/edit.php?post_type=ag_wp_tabby | 1,523 | 4.91 | 72.52 | 27.74 |
Add New /wp-admin/post-new.php?post_type=ag_wp_tabby | 3,247 | 5.98 | 136.02 | 158.39 |
Settings /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings | 2,251 | 4.97 | 74.68 | 106.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- agwp_tabby_settings_options
- db_upgraded
- agwp_tabby_woo_options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings
- > Notice in wp-content/plugins/tabby-free/includes/model/fields/checkbox/checkbox.php+90
Undefined variable: option_key
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tabby-free/public/content-type/normal.php
- > /wp-content/plugins/tabby-free/public/content-type/normal-layout/horizontal-top.php
- 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: content_data in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-top.php on line 3
- > PHP Notice
Undefined variable: content_data in wp-content/plugins/tabby-free/public/tab-theme/default-theme.php on line 3
- > PHP Notice
Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 72
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
- > PHP Notice
Undefined variable: content_data in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
- > PHP Notice
Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 39
- > PHP Notice
Undefined variable: content_data in wp-content/plugins/tabby-free/public/tab-theme/zutab.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
- > PHP Notice
Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (25 tag instead of maximum 10)
tabby-free/plugin-main.php 77% from 13 tests
The principal PHP file in "WP Tabby - Ultimate WP Tabs Plugin for WordPress" v. 1.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 142 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tabby-free.php" instead of "plugin-main.php")
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
There were no executable files found in this plugin16,768 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 2,310 | 904 | 7,841 |
CSS | 5 | 373 | 510 | 4,595 |
JavaScript | 7 | 1,306 | 382 | 4,126 |
PO File | 1 | 86 | 92 | 193 |
SVG | 3 | 0 | 1 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 188 | |
▷ Static methods | 25 | 13.30% |
▷ Public methods | 184 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.13% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/model/assets/images/default.png | 0.57KB | 0.69KB | 0.00% |
includes/model/assets/images/stabytab.png | 1.29KB | 1.39KB | 0.00% |
includes/model/assets/images/horizontal-bottom.png | 3.03KB | 0.25KB | ▼ 91.62% |
includes/model/assets/images/vertical-left.png | 0.67KB | 0.36KB | ▼ 46.95% |
includes/model/assets/images/middle.png | 6.22KB | 2.85KB | ▼ 54.23% |