Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼154.48ms] Passed 4 tests
This is a short check of server-side resources used by WP Studio Tabs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▲0.07 | 28.40 ▲2.99 |
Dashboard /wp-admin | 2.98 ▼0.08 | 30.48 ▼18.58 |
Posts /wp-admin/edit.php | 3.04 ▼0.08 | 34.08 ▼13.12 |
Add New Post /wp-admin/post-new.php | 5.04 ▼0.40 | 76.59 ▼583.97 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 31.22 ▼2.23 |
Manage Tabs /wp-admin/edit.php?post_type=wpstudio__tabs | 3.02 | 28.14 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Studio Tabs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,858 ▲262 | 16.95 ▲1.32 | 14.37 ▲4.47 | 53.02 ▼4.17 |
Dashboard /wp-admin | 3,008 ▲71 | 6.90 ▲0.97 | 148.09 ▼7.11 | 116.92 ▲4.73 |
Posts /wp-admin/edit.php | 2,809 ▲70 | 2.59 ▼0.10 | 78.07 ▲12.40 | 117.84 ▲17.36 |
Add New Post /wp-admin/post-new.php | 1,542 ▼64 | 14.81 ▼4.01 | 316.53 ▼97.16 | 112.22 ▼4.10 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.28 ▲0.25 | 137.86 ▼21.12 | 126.31 ▲2.09 |
Manage Tabs /wp-admin/edit.php?post_type=wpstudio__tabs | 1,452 | 2.79 | 76.95 | 90.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpstudio__tabs
- > Warning in wp-content/plugins/wp-studio-tabs/wpstudio-tabs.php+70
Use of undefined constant PLUGIN_VER - assumed 'PLUGIN_VER' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/custom-css.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/manage-page.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-studio-tabs/includes/settings-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-studio-tabs/includes/metabox.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function has_shortcode() in wp-content/plugins/wp-studio-tabs/css/style.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tab, tabs, tabs widget, responsive tabs, accordion
wp-studio-tabs/wpstudio-tabs.php 85% from 13 tests
The main PHP script in "WP Studio Tabs" version 1.0.8 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-studio-tabs.php" instead of "wpstudio-tabs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,701 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 180 | 19 | 819 |
PHP | 6 | 146 | 25 | 595 |
JavaScript | 3 | 126 | 159 | 287 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wpstudio-logo.png | 6.89KB | 3.30KB | ▼ 52.06% |
images/icon-128x128.png | 25.92KB | 2.51KB | ▼ 90.30% |
images/icon-256x256.png | 33.85KB | 5.08KB | ▼ 84.98% |