Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.16ms] Passed 4 tests
This is a short check of server-side resources used by DM WP SLIDER
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.40 ▼2.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.54 ▼2.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.61 ▼4.06 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.72 ▼11.94 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 38.74 ▲7.50 |
Add New /wp-admin/post-new.php?post_type=ideal-slider | 3.32 | 44.15 |
Slider Images /wp-admin/edit.php?post_type=ideal-slider | 3.31 | 38.09 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for DM WP SLIDER
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.32 ▼1.08 | 3.07 ▲1.23 | 43.83 ▲0.10 |
Dashboard /wp-admin | 2,236 ▲54 | 5.79 ▼0.09 | 99.44 ▼4.19 | 38.38 ▼4.47 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.01 ▼0.04 | 39.04 ▼2.46 | 36.20 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 18.38 ▲0.12 | 592.72 ▼31.66 | 54.14 ▼7.52 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.22 ▼0.04 | 94.95 ▼3.23 | 42.01 ▲0.47 |
Add New /wp-admin/post-new.php?post_type=ideal-slider | 1,623 | 3.98 | 66.34 | 32.15 |
Slider Images /wp-admin/edit.php?post_type=ideal-slider | 1,091 | 1.95 | 29.73 | 28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ideal-image-slider/ideal-slider-type.php:6
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ideal-image-slider/dmwpslider.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ideal-image-slider/dmwpslider.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Admin list interface showing Slider images and titles.), #2 (Admin image interface showing optional title, image and URL), #3 (Example output.(see documentation).)
wp-ideal-image-slider/dmwpslider.php 85% from 13 tests
The main PHP script in "DM WP SLIDER" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ideal-image-slider.php" instead of "dmwpslider.php")
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
Everything looks great! No dangerous files found in this plugin261 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 35 | 22 | 152 |
PHP | 2 | 38 | 20 | 101 |
JavaScript | 2 | 0 | 10 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 291.16KB | 76.51KB | ▼ 73.72% |
lib/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |