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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼13.00ms] Passed 4 tests
Server-side resources used by DVS Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.80 ▼4.76 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.44 ▲0.37 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.80 ▲0.31 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 35.41 ▼47.91 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 34.53 ▲2.25 |
All Dvs Slider Images /wp-admin/edit.php?post_type=dvs_slider_image | 3.37 | 34.51 |
Add New /wp-admin/post-new.php?post_type=dvs_slider_image | 3.25 | 37.17 |
DVS Slider /wp-admin/options-general.php?page=dvs_slider | 3.32 | 30.91 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DVS Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.75 ▲0.37 | 1.72 ▼0.06 | 42.72 ▼2.65 |
Dashboard /wp-admin | 2,240 ▲48 | 4.81 ▼0.11 | 101.74 ▼5.09 | 39.08 ▼1.04 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▲0.06 | 39.08 ▲2.61 | 35.08 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,569 ▲30 | 18.24 ▼5.07 | 599.97 ▼24.60 | 55.31 ▼3.57 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.20 ▼0.04 | 97.85 ▲2.92 | 42.99 ▲2.75 |
All Dvs Slider Images /wp-admin/edit.php?post_type=dvs_slider_image | 1,185 | 2.00 | 33.96 | 31.45 |
Add New /wp-admin/post-new.php?post_type=dvs_slider_image | 1,741 | 3.66 | 64.75 | 35.89 |
DVS Slider /wp-admin/options-general.php?page=dvs_slider | 816 | 2.04 | 23.17 | 28.57 |
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
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=dvs_slider_image
- > Notice in wp-content/plugins/dvs-slider/DvsSlider.class.php+263
Undefined index: dvs_nonce
- > GET request to /wp-admin/options-general.php?page=dvs_slider
- > Notice in wp-content/plugins/dvs-slider/partials/setting-input.php+6
Trying to access array offset on value of type bool
SRP 0% from 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
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dvs-slider/partials/link.php
- > /wp-content/plugins/dvs-slider/partials/thumb.php
- > /wp-content/plugins/dvs-slider/partials/slider.php
- > /wp-content/plugins/dvs-slider/partials/order.php
- > /wp-content/plugins/dvs-slider/partials/caption.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: domain in wp-content/plugins/dvs-slider/partials/thumb.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function getOptions() on null in wp-content/plugins/dvs-slider/partials/setting-input.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/dvs-slider/partials/slider.php on line 4
- > PHP Notice
Undefined variable: link in wp-content/plugins/dvs-slider/partials/link.php on line 1
- > PHP Notice
Undefined variable: meta_name_order in wp-content/plugins/dvs-slider/partials/order.php on line 1
- > PHP Notice
Undefined variable: src in wp-content/plugins/dvs-slider/partials/thumb.php on line 1
- > PHP Notice
Undefined variable: domain in wp-content/plugins/dvs-slider/partials/thumb.php on line 1
- > PHP Notice
Undefined variable: instance in wp-content/plugins/dvs-slider/partials/setting-input.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'DvsSlider' not found in wp-content/plugins/dvs-slider/partials/options.php:4
- > PHP Notice
Undefined variable: caption in wp-content/plugins/dvs-slider/partials/caption.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== dvs-slider ===
) - Screenshots: These screenshots do not have images: #1 (Sample result), #2 (Slider image management), #3 (Inserting new slider image), #4 (Using slider shortcode)
dvs-slider/dvs_slider.php 92% from 13 tests
"DVS Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("dvs-slider.php" instead of "dvs_slider.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 plugin1,373 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 76 | 73 | 529 |
CSS | 6 | 24 | 53 | 473 |
PHP | 9 | 81 | 27 | 371 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.18MB with 0.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/light/arrows.png | 3.17KB | 0.52KB | ▼ 83.49% |
themes/default/arrows.png | 0.80KB | 0.51KB | ▼ 36.53% |
themes/dark/arrows.png | 3.02KB | 0.38KB | ▼ 87.27% |
screenshot-2.png | 358.16KB | 94.07KB | ▼ 73.74% |
screenshot-3.png | 318.10KB | 76.04KB | ▼ 76.09% |