Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.41ms] Passed 4 tests
This is a short check of server-side resources used by dream gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.04 ▼2.18 |
Dashboard /wp-admin | 3.40 ▲0.05 | 52.33 ▼9.28 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 57.09 ▲5.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.36 ▼5.74 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 38.37 ▲3.55 |
Help /wp-admin/admin.php?page=help | 3.30 | 35.72 |
Slider /wp-admin/admin.php?page=Dream-slider | 3.30 | 35.68 |
Add New /wp-admin/admin.php?page=Add-new | 3.30 | 37.16 |
Dream /wp-admin/admin.php?page=dream_gallery | 3.31 | 32.26 |
All Galleries /wp-admin/admin.php?page=All-Galleries | 3.32 | 32.63 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_images_two |
wp_images |
wp_images_three |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
dream gallery: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲231 | 14.99 ▲0.62 | 1.78 ▼0.40 | 26.37 ▼27.00 |
Dashboard /wp-admin | 2,397 ▲209 | 6.49 ▲1.61 | 134.93 ▲18.03 | 48.77 ▲6.72 |
Posts /wp-admin/edit.php | 2,298 ▲209 | 3.37 ▲1.35 | 57.20 ▲20.75 | 41.41 ▲8.38 |
Add New Post /wp-admin/post-new.php | 1,706 ▲173 | 22.70 ▼0.53 | 649.56 ▼4.74 | 40.40 ▼26.54 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.17 ▼0.13 | 81.31 ▼21.86 | 48.96 ▲2.84 |
Help /wp-admin/admin.php?page=help | 1,054 | 3.04 | 41.93 | 63.92 |
Slider /wp-admin/admin.php?page=Dream-slider | 1,049 | 3.09 | 39.28 | 37.18 |
Add New /wp-admin/admin.php?page=Add-new | 1,043 | 3.18 | 40.99 | 47.93 |
Dream /wp-admin/admin.php?page=dream_gallery | 1,255 | 3.20 | 41.68 | 42.15 |
All Galleries /wp-admin/admin.php?page=All-Galleries | 1,009 | 3.06 | 39.97 | 26.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/dream-gallery/uninstall.php+19
Trying to get property 'ID' of non-object
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+166
Undefined variable: retrieved_data
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+158
Trying to get property 'img_one' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+159
Trying to get property 'img_two' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+160
Trying to get property 'img_three' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+161
Trying to get property 'img_four' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+162
Trying to get property 'img_five' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+163
Trying to get property 'img_six' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+164
Trying to get property 'img_seven' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+165
Trying to get property 'img_eight' of non-object
- > GET request to /wp-admin/admin.php?page=dream_gallery
- > Notice in wp-content/plugins/dream-gallery/templates/admin.php+166
Trying to get property 'img_nine' of non-object
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
The following issues need your attention
- 13× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/dream-gallery/templates/help.php
- > /wp-content/plugins/dream-gallery/inc/Dreamplugin_deactivate.php
- > /wp-content/plugins/dream-gallery/uninstall.php
- > /wp-content/plugins/dream-gallery/templates/front_two.php
- > /wp-content/plugins/dream-gallery/templates/slider_front.php
- > /wp-content/plugins/dream-gallery/templates/Addnew.php
- > /wp-content/plugins/dream-gallery/inc/Dreamplugin_activate.php
- > /wp-content/plugins/dream-gallery/templates/admin.php
- > /wp-content/plugins/dream-gallery/dreamgallery.php
- > /wp-content/plugins/dream-gallery/templates/slider_admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Contributors: Contributors not specified
- Screenshots: Screenshot #1 (This is the screenshot of admin section of dream slider (screenshot-1.jpg).) image required
dream-gallery/dreamgallery.php 77% from 13 tests
The primary PHP file in "dream gallery" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "5.2")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("dream-gallery.php" instead of "dreamgallery.php")
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
Everything looks great! No dangerous files found in this plugin14,165 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,240 | 35 | 9,334 |
JavaScript | 6 | 1,053 | 393 | 3,550 |
PHP | 13 | 441 | 127 | 1,281 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected