Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.81ms] Passed 4 tests
An overview of server-side resources used by Kings Tab Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.88 ▼6.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.09 ▼2.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.56 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.48 ▼8.22 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.77 ▼0.64 |
Tabs /wp-admin/edit.php?post_type=tabslider-items | 3.30 | 43.01 |
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabslider-items | 3.25 | 32.14 |
Add New /wp-admin/post-new.php?post_type=tabslider-items | 3.38 | 51.48 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Kings Tab Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲233 | 13.82 ▼0.46 | 5.13 ▲2.85 | 44.05 ▼4.49 |
Dashboard /wp-admin | 2,247 ▲59 | 5.84 ▼0.04 | 95.65 ▼4.01 | 41.60 ▼3.01 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.03 ▲0.03 | 39.91 ▼6.22 | 34.19 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.13 ▲5.59 | 659.10 ▼19.83 | 49.10 ▼5.14 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.27 ▼0.02 | 100.31 ▲4.70 | 44.14 ▲1.08 |
Tabs /wp-admin/edit.php?post_type=tabslider-items | 1,111 | 2.02 | 32.37 | 29.44 |
Tab Category /wp-admin/edit-tags.php?taxonomy=tabslider_cat&post_type=tabslider-items | 1,306 | 2.29 | 25.90 | 26.86 |
Add New /wp-admin/post-new.php?post_type=tabslider-items | 2,389 | 7.66 | 166.07 | 64.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 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/kings-tab-slider/plugin-hook.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: tab, tab slider, slider, colorful tabs, responsive tab...
kings-tab-slider/plugin-hook.php 92% from 13 tests
"Kings Tab Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kings-tab-slider.php" instead of "plugin-hook.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin300 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 26 | 18 | 215 |
PHP | 1 | 34 | 13 | 82 |
JavaScript | 3 | 0 | 48 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 5 | |
▷ Named functions | 5 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 3.50KB | 0.10KB | ▼ 97.18% |
images/arrow.png | 2.09KB | 0.99KB | ▼ 52.61% |