Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼141.34ms] Passed 4 tests
Analyzing server-side resources used by Tabs For WPBakery Page Builder (formerly Visual Composer)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 39.56 ▲16.60 |
Dashboard /wp-admin | 3.10 ▲0.04 | 47.44 ▲2.81 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.29 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 87.18 ▼570.31 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 32.21 ▲2.60 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Tabs For WPBakery Page Builder (formerly Visual Composer)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 15.87 ▲0.30 | 7.23 ▼1.64 | 44.36 ▼1.07 |
Dashboard /wp-admin | 3,008 ▲78 | 5.95 ▼0.11 | 138.81 ▼18.66 | 105.32 ▼15.78 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.69 ▲0.02 | 66.43 ▲0.59 | 93.01 ▲7.83 |
Add New Post /wp-admin/post-new.php | 1,512 ▼171 | 18.57 ▼0.15 | 364.82 ▼42.57 | 101.10 ▼19.90 |
Media Library /wp-admin/upload.php | 1,826 ▲19 | 5.01 ▼0.03 | 149.04 ▼0.30 | 113.11 ▼7.59 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabs-for-visual-composer/plugin.class.php:13
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #5, #6 in tabs-for-visual-composer/assets to your readme.txt
tabs-for-visual-composer/index.php 85% from 13 tests
This is the main PHP file of "Tabs For WPBakery Page Builder (formerly Visual Composer)" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to 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
- Main file name: Name the main plugin file the same as the plugin slug ("tabs-for-visual-composer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,819 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 566 | 77 | 10,581 |
PHP | 2 | 53 | 21 | 201 |
JavaScript | 2 | 7 | 6 | 24 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/tabs-icon.png | 2.77KB | 1.36KB | ▼ 51.09% |
admin/vc-extend.png | 50.50KB | 20.84KB | ▼ 58.72% |