Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.64MB] [CPU: ▼20.02ms] Passed 4 tests
A check of server-side resources used by JS-SWITCH
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.32 ▼3.24 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.05 ▲0.01 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 41.68 ▼7.52 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 40.07 ▼69.33 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.57 ▲0.17 |
JS-SWITCH /wp-admin/edit.php?post_type=slidesjs_slider | 3.33 | 36.75 |
Add Js-Switch /wp-admin/post-new.php?post_type=slidesjs_slider | 3.15 | 35.07 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
JS-SWITCH: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 13.85 ▼0.81 | 12.43 ▲10.60 | 38.20 ▼12.71 |
Dashboard /wp-admin | 2,232 ▲41 | 5.89 ▲0.99 | 96.46 ▼11.02 | 81.63 ▲41.73 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 1.97 ▼0.05 | 36.08 ▼4.38 | 31.85 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.15 ▲4.94 | 744.99 ▲113.20 | 55.72 ▲6.14 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.13 ▼0.09 | 95.02 ▼9.14 | 73.20 ▲28.19 |
JS-SWITCH /wp-admin/edit.php?post_type=slidesjs_slider | 1,096 | 1.95 | 33.68 | 30.87 |
Add Js-Switch /wp-admin/post-new.php?post_type=slidesjs_slider | 2,406 | 7.64 | 167.51 | 124.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+239
Undefined index: fwds_slider_box_nonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+170
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+176
Undefined offset: 1
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+182
Undefined offset: 2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+188
Undefined offset: 3
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+194
Undefined offset: 4
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+200
Undefined offset: 5
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+206
Undefined offset: 6
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+212
Undefined offset: 7
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+218
Undefined offset: 8
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=slidesjs_slider
- > Notice in wp-content/plugins/js-switch/js-switch.php+224
Undefined offset: 9
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/js-switch/js-switch.php:18
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
js-switch/js-switch.php Passed 13 tests
The principal PHP file in "JS-SWITCH" v. 1.1 is loaded by WordPress automatically on each request
42 characters long description:
Scrollbox that scroll images with that box
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
Success! There were no dangerous files found in this plugin471 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 21 | 193 |
JavaScript | 3 | 21 | 18 | 171 |
CSS | 1 | 0 | 0 | 107 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow-left.png | 1.17KB | 0.26KB | ▼ 77.58% |
images/blue_fire.png | 1.90KB | 1.30KB | ▼ 31.53% |
images/arrow-right.png | 1.17KB | 0.27KB | ▼ 77.07% |