Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.31ms] Passed 4 tests
An overview of server-side resources used by Wp tabber widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.97 ▲2.77 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.73 ▼6.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.13 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.23 ▼15.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.73 ▲3.27 |
Wp tabber widget /wp-admin/options-general.php?page=wp-tabber-widget | 3.27 | 34.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gtabber |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
GTabber_Left |
theysaidso_admin_options |
GTabber_Right |
Browser metrics Passed 4 tests
Checking browser requirements for Wp tabber widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.60 ▼0.61 | 9.93 ▲7.85 | 43.10 ▲0.32 |
Dashboard /wp-admin | 2,213 ▲22 | 4.86 ▼0.96 | 109.04 ▲1.02 | 37.78 ▼2.83 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.01 | 39.38 ▼1.27 | 34.10 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.30 ▲0.08 | 660.71 ▲26.85 | 52.09 ▲6.05 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.24 ▲0.06 | 104.39 ▲2.77 | 47.47 ▲4.18 |
Wp tabber widget /wp-admin/options-general.php?page=wp-tabber-widget | 1,119 | 2.05 | 23.66 | 37.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-tabber-widget/pages/content-show.php
- > /wp-content/plugins/wp-tabber-widget/pages/content-edit.php
- > /wp-content/plugins/wp-tabber-widget/pages/content-add.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-tabber-widget/wp-tabber-widget.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-tabber-widget/wp-tabber-widget.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, plugin, tabber
wp-tabber-widget/wp-tabber-widget.php Passed 13 tests
"Wp tabber widget" version 4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
This is a jquery based lightweight plugin to create tab in the wordpress widget.
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
There were no executable files found in this plugin881 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 47 | 643 |
PO File | 2 | 69 | 85 | 167 |
JavaScript | 2 | 18 | 8 | 61 |
CSS | 1 | 3 | 6 | 9 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/ico-hot-orange.png | 1.75KB | 0.85KB | ▼ 51.73% |
inc/ico-hot-blue.png | 1.68KB | 0.76KB | ▼ 54.85% |
inc/ico-hot-grey.png | 1.69KB | 0.75KB | ▼ 55.66% |