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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼143.86ms] Passed 4 tests
This is a short check of server-side resources used by WP Tab Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 36.39 ▲15.59 |
Dashboard /wp-admin | 3.21 ▲0.15 | 47.70 ▲3.54 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 47.20 ▲4.98 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.12 | 81.62 ▼584.87 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 32.77 ▲0.92 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 3 new options
New WordPress options |
---|
wp_tab_widget_notice_views |
wp_tab_widget_activated |
widget_wpt_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Tab Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 16.21 ▲0.72 | 8.21 ▼1.17 | 48.26 ▼9.29 |
Dashboard /wp-admin | 2,979 ▲48 | 5.89 ▼0.07 | 139.69 ▼7.16 | 106.87 ▼1.34 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.69 ▼0.00 | 61.45 ▼6.36 | 92.80 ▼4.11 |
Add New Post /wp-admin/post-new.php | 1,502 ▼170 | 18.59 ▼0.50 | 370.12 ▼11.66 | 110.39 ▼0.66 |
Media Library /wp-admin/upload.php | 1,809 ▼1 | 5.00 ▼0.01 | 147.82 ▼5.13 | 116.07 ▼4.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 3 options
- widget_wpt_widget
- wp_tab_widget_notice_views
- wp_tab_widget_activated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tab-widget/wp-tab-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ajax tabs, tab widget, recent posts tab, tabs, ajax widget...
wp-tab-widget/wp-tab-widget.php Passed 13 tests
Analyzing the main PHP file in "WP Tab Widget" version 1.2.11
121 characters long description:
WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
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
Everything looks great! No dangerous files found in this plugin1,039 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 80 | 36 | 627 |
CSS | 1 | 10 | 11 | 224 |
JavaScript | 2 | 15 | 15 | 98 |
PO File | 1 | 37 | 38 | 90 |
PHP code Passed 2 tests
Analyzing 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.32 |
Average class complexity | 93.00 |
▷ Minimum class complexity | 93.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.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 | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/smallthumb.png | 0.41KB | 0.44KB | 0.00% |
img/largethumb.png | 0.88KB | 0.95KB | 0.00% |