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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.37ms] Passed 4 tests
An overview of server-side resources used by WP Easy Image Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.12 ▲3.41 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.40 ▼3.20 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.54 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.44 ▲2.57 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.65 ▲4.88 |
WP Image Slider /wp-admin/edit.php?post_type=slider | 3.32 | 35.78 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 3.34 | 56.87 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Easy Image Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲183 | 13.62 ▼0.82 | 6.11 ▲3.74 | 42.93 ▼4.32 |
Dashboard /wp-admin | 2,230 ▲38 | 5.76 ▲0.63 | 100.54 ▼9.31 | 39.63 ▼3.45 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.97 ▼0.02 | 40.31 ▲5.67 | 37.16 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,562 ▲42 | 18.52 ▼4.45 | 600.66 ▼31.28 | 56.24 ▲1.60 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.21 ▲0.04 | 97.96 ▼4.22 | 45.18 ▼2.06 |
WP Image Slider /wp-admin/edit.php?post_type=slider | 1,097 | 1.93 | 29.69 | 30.43 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 1,657 | 3.62 | 63.11 | 33.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-easy-image-slider/easy_slider.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=slider
- > Network (severe)
wp-content/plugins/wp-easy-image-slider/hm_script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: image rotators, wp easy image slider, photo slider, image slider
wp-easy-image-slider/easy_slider.php 92% from 13 tests
The main PHP script in "WP Easy Image Slider" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-easy-image-slider.php" instead of "easy_slider.php")
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
No dangerous file extensions were detected288 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 28 | 212 |
JavaScript | 3 | 10 | 6 | 48 |
CSS | 1 | 4 | 9 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pagination.png | 1.36KB | 0.58KB | ▼ 57.53% |
images/image_uploading.png | 62.41KB | 25.33KB | ▼ 59.41% |