Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.54MB] [CPU: ▼54.56ms] Passed 4 tests
A check of server-side resources used by Logicrays Easy Responsive Gallery with Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.97 ▼4.75 |
Dashboard /wp-admin | 2.42 ▼0.93 | 11.75 ▼52.16 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 11.36 ▼41.40 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 11.97 ▼97.19 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 9.66 ▼27.48 |
All Galleries /wp-admin/edit.php?post_type=lergs_gallery | 2.42 | 11.89 |
Add New Gallery /wp-admin/post-new.php?post_type=lergs_gallery | 2.42 | 12.27 |
Settings /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page | 2.42 | 11.66 |
Server storage [IO: ▲0.84MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Logicrays Easy Responsive Gallery with Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 14.02 ▼0.33 | 12.58 ▲10.92 | 45.33 ▼0.39 |
Dashboard /wp-admin | 2,254 ▲77 | 5.85 ▲0.26 | 99.18 ▲6.56 | 44.04 ▲0.91 |
Posts /wp-admin/edit.php | 2,181 ▲81 | 2.29 ▲0.32 | 38.86 ▼1.42 | 35.29 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,581 ▲46 | 23.09 ▲4.85 | 684.94 ▲72.21 | 37.88 ▼21.98 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.42 ▲0.26 | 109.87 ▲12.63 | 50.07 ▲7.20 |
All Galleries /wp-admin/edit.php?post_type=lergs_gallery | 1,164 | 2.48 | 42.89 | 33.85 |
Add New Gallery /wp-admin/post-new.php?post_type=lergs_gallery | 1,746 | 3.76 | 66.66 | 34.66 |
Settings /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page | 1,241 | 2.29 | 46.30 | 28.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php+69
Use of undefined constant lergs - assumed 'lergs' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- 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 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
- 96 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page
- > Warning in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php+317
Use of undefined constant lergs - assumed 'lergs' (this will throw an Error in a future version of PHP)
- 96 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page
- > Warning in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php+317
Use of undefined constant responsive - assumed 'responsive' (this will throw an Error in a future version of PHP)
- 288 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page
- > Warning in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php+317
A non-numeric value encountered
- 96 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page
- > Warning in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php+317
Use of undefined constant gallery - assumed 'gallery' (this will throw an Error in a future version of PHP)
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lergs_gallery&page=lergs-setting-page
- > Notice in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/lergs-responsive-gallery.php+144
Trying to access array offset on value of type bool
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/class-lergs.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/lergs-responsive-gallery.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logicrays-easy-responsive-gallery-with-slider/includes/lergs-responsive-gallery-shortcode.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
- Stable tag: Not defined
logicrays-easy-responsive-gallery-with-slider/lergs-responsive-gallery.php 92% from 13 tests
The main PHP file in "Logicrays Easy Responsive Gallery with Slider" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logicrays-easy-responsive-gallery-with-slider.php" instead of "lergs-responsive-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,701 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 27 | 688 |
SVG | 1 | 0 | 0 | 504 |
CSS | 8 | 1 | 19 | 363 |
JavaScript | 5 | 3 | 26 | 146 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fencybox/images/Photos-icon.png | 1.56KB | 1.30KB | ▼ 16.67% |
images/Photos-icon.png | 1.56KB | 1.30KB | ▼ 16.67% |
fencybox/images/Close-icon.png | 18.37KB | 8.39KB | ▼ 54.31% |
images/Close-icon.png | 18.37KB | 8.39KB | ▼ 54.31% |