Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼139.41ms] Passed 4 tests
Analyzing server-side resources used by Tabs & Accordion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.51 ▲9.64 |
Dashboard /wp-admin | 3.13 ▲0.08 | 43.49 ▲8.04 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 41.27 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.28 | 82.25 ▼564.09 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 30.86 ▼0.05 |
Add New /wp-admin/admin.php?page=add-new-tabs-accordion | 2.99 | 33.21 |
Settings /wp-admin/admin.php?page=tabs-accordion-settings | 2.99 | 27.56 |
Tabs & Accordion /wp-admin/admin.php?page=tabs-accordion | 2.99 | 27.32 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Tabs & Accordion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,734 ▲138 | 16.10 ▲0.48 | 11.77 ▲1.69 | 44.13 ▼11.01 |
Dashboard /wp-admin | 3,014 ▲80 | 6.17 ▲0.24 | 146.47 ▼10.80 | 126.24 ▲20.07 |
Posts /wp-admin/edit.php | 2,805 ▲66 | 2.74 ▲0.02 | 67.30 ▼0.02 | 88.34 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▼45 | 18.39 ▲3.96 | 405.11 ▼1.07 | 111.84 ▲0.99 |
Media Library /wp-admin/upload.php | 1,796 ▼14 | 5.05 ▲0.04 | 190.84 ▲27.00 | 138.00 ▲25.73 |
Add New /wp-admin/admin.php?page=add-new-tabs-accordion | 1,950 | 4.17 | 106.34 | 162.40 |
Settings /wp-admin/admin.php?page=tabs-accordion-settings | 1,633 | 2.37 | 55.45 | 126.28 |
Tabs & Accordion /wp-admin/admin.php?page=tabs-accordion | 1,313 | 2.10 | 50.14 | 97.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tabs-accordion
- > Notice in wp-content/plugins/tabs-accordion/tabs-accordion.php+41
Undefined variable: plugin_path
- > GET request to /wp-admin/admin.php?page=add-new-tabs-accordion
- > Notice in wp-content/plugins/tabs-accordion/includes/pages/tbacc-add-new.php+147
Undefined variable: tbacc_error
- > GET request to /wp-admin/admin.php?page=add-new-tabs-accordion
- > User deprecated in wp-includes/functions.php+5495
wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.
- > GET request to /wp-admin/admin.php?page=tabs-accordion-settings
- > Notice in wp-content/plugins/tabs-accordion/includes/pages/tbacc-settings.php+31
Undefined variable: tbacc_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tabs-accordion-settings
- > Notice in wp-content/plugins/tabs-accordion/includes/pages/tbacc-settings.php+214
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=tabs-accordion
- > Notice in wp-content/plugins/tabs-accordion/includes/functions.php+75
Undefined variable: paged
- > GET request to /wp-admin/admin.php?page=tabs-accordion
- > Notice in wp-content/plugins/tabs-accordion/includes/functions.php+75
Undefined variable: items_per_page
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: shortcode, accordion, tabs
tabs-accordion/tabs-accordion.php Passed 13 tests
The main PHP script in "Tabs & Accordion" version 1.0.0 is automatically included on every request by WordPress
78 characters long description:
A plugin to add tabs and accordion to the website with respect to window width
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,929 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 364 | 167 | 1,578 |
PHP | 5 | 116 | 78 | 878 |
CSS | 2 | 21 | 6 | 473 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250-rtl.png | 20.55KB | 20.55KB | 0.00% |
assets/images/tbacc-sprite.png | 24.69KB | 7.83KB | ▼ 68.29% |
assets/images/tbacc-icon.png | 0.73KB | 0.73KB | 0.00% |
assets/icon-128x128.png | 4.73KB | 2.82KB | ▼ 40.24% |