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
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼3.06ms] Passed 4 tests
Analyzing server-side resources used by Srizon Responsive Flickr Gallery Basic
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 37.01 ▼8.94 |
Dashboard /wp-admin | 3.65 ▲0.35 | 50.81 ▲2.27 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 49.86 ▼2.31 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.30 ▼3.26 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.08 ▲6.97 |
Other's Albums /wp-admin/admin.php?page=SrzFlickr-OtherAlbums | 3.46 | 35.15 |
Other's Galleries /wp-admin/admin.php?page=SrzFlickr-OtherGalleries | 3.46 | 32.51 |
Common Options /wp-admin/admin.php?page=SrzFlickr | 3.45 | 35.73 |
My Galleries /wp-admin/admin.php?page=SrzFlickr-Galleries | 3.46 | 35.31 |
My Albums /wp-admin/admin.php?page=SrzFlickr-Albums | 3.46 | 35.41 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Srizon Responsive Flickr Gallery Basic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.97 ▼0.32 | 11.52 ▲9.83 | 48.98 ▲9.58 |
Dashboard /wp-admin | 2,221 ▲41 | 5.50 ▼0.12 | 89.52 ▲0.27 | 85.73 ▲44.94 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 1.97 ▼0.04 | 36.86 ▲0.34 | 31.94 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,574 ▲39 | 23.30 ▲5.11 | 669.77 ▲45.64 | 98.63 ▲28.12 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.18 ▲0.01 | 101.31 ▼2.25 | 69.43 ▲26.43 |
Other's Albums /wp-admin/admin.php?page=SrzFlickr-OtherAlbums | 821 | 1.66 | 25.83 | 27.76 |
Other's Galleries /wp-admin/admin.php?page=SrzFlickr-OtherGalleries | 804 | 1.75 | 24.88 | 21.45 |
Common Options /wp-admin/admin.php?page=SrzFlickr | 1,043 | 1.82 | 28.73 | 37.04 |
My Galleries /wp-admin/admin.php?page=SrzFlickr-Galleries | 821 | 1.80 | 25.66 | 24.73 |
My Albums /wp-admin/admin.php?page=SrzFlickr-Albums | 818 | 1.68 | 28.37 | 26.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SrzFlickr-Albums
- > Notice in wp-content/plugins/srizon-flickr-gallery-basic/lib/flickr.php+329
Undefined index: SrizonFlickrSessionOauthData
- > GET request to /wp-admin/admin.php?page=SrzFlickr
- > Notice in wp-content/plugins/srizon-flickr-gallery-basic/admin/srizon-flickr-common-back.php+53
Undefined index: submit
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
- 113× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_above.php on line 24
- > PHP Notice
Undefined variable: photos in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/image_card.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/collage_thumb.php on line 11
- > PHP Notice
Undefined variable: srz_album in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_above.php on line 22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_below.php on line 21
- > PHP Notice
Undefined variable: srz_album in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_below.php on line 21
- > PHP Notice
Undefined variable: srz_album in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/single_image.php on line 18
- > PHP Notice
Undefined variable: photos in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_above.php on line 11
- > PHP Notice
Undefined variable: data in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/slider_image_below.php on line 21
- > PHP Notice
Undefined variable: photos in wp-content/plugins/srizon-flickr-gallery-basic/tmpl/single_image.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
8 plugin tags: flickr gallery, album, photo album, flickr album, gallery...
srizon-flickr-gallery-basic/srizon-flickr-gallery.php 77% from 13 tests
The main PHP script in "Srizon Responsive Flickr Gallery Basic" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("srizon-flickr-gallery-basic.php" instead of "srizon-flickr-gallery.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
No dangerous file extensions were detected5,072 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 257 | 247 | 2,225 |
JavaScript | 11 | 418 | 406 | 1,496 |
CSS | 8 | 265 | 41 | 1,351 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 24 | 40.68% |
▷ Public methods | 39 | 66.10% |
▷ Protected methods | 5 | 8.47% |
▷ Private methods | 15 | 25.42% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.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
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/youtube-icon.png | 0.71KB | 0.89KB | 0.00% |
resources/images/prev_next.png | 3.47KB | 0.69KB | ▼ 80.06% |
resources/images/black_denim.png | 9.78KB | 10.98KB | 0.00% |
resources/images/srzflickr-icon.png | 1.03KB | 0.83KB | ▼ 19.64% |
resources/images/nav.png | 0.78KB | 0.46KB | ▼ 40.28% |