Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼15.60ms] Passed 4 tests
An overview of server-side resources used by Image Responsive Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.76 ▼6.06 |
Dashboard /wp-admin | 3.51 ▲0.16 | 54.98 ▼15.52 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.98 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.02 ▼0.87 | 59.84 ▼41.67 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 41.55 ▲4.94 |
Sliders /wp-admin/admin.php?page=corefortress_slider_sliders | 3.40 | 41.10 |
Themes /wp-admin/admin.php?page=corefortress_slider_themes | 3.41 | 45.87 |
Server storage [IO: ▲1.43MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 81 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_corefortress_sliders |
wp_corefortress_slider_themes |
wp_corefortress_slides |
New WordPress options |
---|
corefortress_slider_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Image Responsive Slider: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.72 ▲0.35 | 1.82 ▲0.10 | 40.70 ▼8.54 |
Dashboard /wp-admin | 2,226 ▲49 | 5.56 ▼0.29 | 85.67 ▼6.48 | 81.14 ▲36.86 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 1.99 ▼0.01 | 36.13 ▼2.69 | 34.89 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6,389 ▲4,863 | 27.39 ▲4.42 | 904.49 ▲254.97 | 39.52 ▼10.50 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.11 ▼0.04 | 107.73 ▲5.49 | 83.88 ▲37.94 |
Sliders /wp-admin/admin.php?page=corefortress_slider_sliders | 867 | 2.15 | 43.35 | 28.54 |
Themes /wp-admin/admin.php?page=corefortress_slider_themes | 988 | 2.12 | 35.13 | 40.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_corefortress_sliders
- wp_corefortress_slides
- wp_corefortress_slider_themes
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- corefortress_slider_version
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 110× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/image-responsive-slider/views/front/shortcode.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/image-responsive-slider/views/admin/edit-post-slide.php:27
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/image-responsive-slider/views/front/shortcode.php on line 59
- > PHP Notice
Trying to get property 'media_image_id' of non-object in wp-content/plugins/image-responsive-slider/views/admin/edit-video-slide.php on line 24
- > PHP Notice
Undefined variable: slide in wp-content/plugins/image-responsive-slider/views/admin/edit-video-slide.php on line 8
- > PHP Notice
Trying to get property 'sort_order' of non-object in wp-content/plugins/image-responsive-slider/views/admin/edit-video-slide.php on line 10
- > PHP Notice
Undefined variable: slide in wp-content/plugins/image-responsive-slider/views/admin/edit-video-slide.php on line 22
- > PHP Notice
Trying to get property 'grabCursor' of non-object in wp-content/plugins/image-responsive-slider/views/front/shortcode.php on line 37
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/image-responsive-slider/views/admin/edit-image-slide.php on line 8
- > PHP Notice
Undefined variable: slide in wp-content/plugins/image-responsive-slider/views/admin/edit-post-slide.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: image slider, slider, responsive slider
image-responsive-slider/index.php 85% from 13 tests
"Image Responsive Slider" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: Name the main plugin file the same as the plugin slug ("image-responsive-slider.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,657 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 770 | 399 | 8,205 |
PHP | 27 | 373 | 277 | 3,028 |
CSS | 5 | 110 | 47 | 1,144 |
SVG | 34 | 0 | 3 | 264 |
JSON | 2 | 0 | 0 | 8 |
Markdown | 1 | 3 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 55 | |
▷ Static methods | 5 | 9.09% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 2 | 3.64% |
▷ Private methods | 4 | 7.27% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 |
assets/img/admin-icon.png | 1.73KB | 0.92KB | ▼ 47.18% |
assets/img/logo.png | 5.02KB | 2.28KB | ▼ 54.49% |