Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼2.31ms] 75% from 4 tests
This is a short check of server-side resources used by SmugMug Responsive Slider
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 724.08ms on /wp-admin/options-general.php?page=smugmug-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 42.13 ▲0.17 |
Dashboard /wp-admin | 3.65 ▲0.35 | 48.62 ▲3.06 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 47.31 ▼2.23 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 96.26 ▼10.25 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 37.99 ▲3.92 |
SmugMug Slider /wp-admin/options-general.php?page=smugmug-settings | 3.48 | 724.08 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
pyd_smug_slider |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
SmugMug Responsive Slider: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.47 ▲0.07 | 2.02 ▲0.31 | 41.19 ▲1.39 |
Dashboard /wp-admin | 2,216 ▲27 | 5.83 ▲0.88 | 95.51 ▼28.38 | 40.13 ▼4.33 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.03 | 37.59 ▼1.43 | 33.21 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.31 ▼0.04 | 652.15 ▲35.84 | 61.69 ▲10.39 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.24 ▲0.05 | 95.94 ▼1.27 | 42.65 ▲1.47 |
SmugMug Slider /wp-admin/options-general.php?page=smugmug-settings | 786 | 2.03 | 25.24 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+410
unserialize(): Error at offset 0 of 30995 bytes
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+411
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+762
Undefined variable: output
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/pyd-settings.php+375
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+883
Undefined offset: 1
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+478
Undefined index: id
- > GET request to /wp-admin/options-general.php?page=smugmug-settings
- > Notice in wp-content/plugins/smugmug-responsive-slider/includes/lib/phpSmug/phpSmug.php+479
Undefined index: Secret
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smugmug-responsive-slider/includes/pyd-smug_shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smugmug-responsive-slider/includes/pyd-settings.php:396
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smugmug-responsive-slider/includes/pyd-settings.php:396
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: images, pictures, smugmug, smug mug, responsive slider
smugmug-responsive-slider/pyd-smugmug_slider.php 85% from 13 tests
The main PHP file in "SmugMug Responsive Slider" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smugmug-responsive-slider.php" instead of "pyd-smugmug_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,706 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 284 | 616 | 1,464 |
JavaScript | 3 | 89 | 115 | 729 |
XML | 8 | 6 | 0 | 326 |
CSS | 2 | 40 | 26 | 187 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 25.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 44 | 83.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 16.98% |
Functions | 13 | |
▷ Named functions | 13 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.88MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/FlexSlider/theme/bg_control_nav.png | 1.73KB | 1.11KB | ▼ 36.20% |
screenshot-2.png | 377.94KB | 109.50KB | ▼ 71.03% |
screenshot-3.png | 148.97KB | 44.38KB | ▼ 70.21% |
includes/lib/FlexSlider/theme/bg_direction_nav.png | 2.37KB | 1.33KB | ▼ 43.68% |
screenshot-1.png | 288.83KB | 118.50KB | ▼ 58.97% |