Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▼5.12ms] Passed 4 tests
This is a short check of server-side resources used by Flickr-stream
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 41.91 ▼4.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.83 ▲2.23 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.48 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.43 ▼13.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 38.26 ▲0.37 |
Setttings /wp-admin/admin.php?page=flickr-stream_settings | 3.28 | 34.19 |
Flickr-Stream /wp-admin/admin.php?page=flickr-stream | 3.56 | 33.56 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_flickrstream_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
flickrstream_main_opts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Flickr-stream
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 13.46 ▼0.89 | 12.81 ▲10.98 | 43.67 ▼5.39 |
Dashboard /wp-admin | 2,213 ▲42 | 5.58 ▼0.09 | 89.61 ▼10.69 | 76.97 ▲33.51 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.04 ▲0.03 | 37.14 ▲0.51 | 35.41 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.50 ▲0.62 | 679.04 ▲7.38 | 62.53 ▲1.26 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.15 ▼0.02 | 98.16 ▼15.10 | 70.45 ▲18.88 |
Setttings /wp-admin/admin.php?page=flickr-stream_settings | 877 | 2.19 | 23.68 | 27.87 |
Flickr-Stream /wp-admin/admin.php?page=flickr-stream | 971 | 2.01 | 25.89 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/flickr-stream/inc/forms/editShortcode.inc.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flickr-stream/photos_widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickr-stream/class/fsShortcodeListTable.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flickr-stream/flickrstream.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flickr-stream/inc/forms/createShortcode.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flickr-stream/inc/forms/generalOptions.inc.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickr-stream/class/fsShortcodeListTable.class.php:3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: flickr, photos, gallery
flickr-stream/flickrstream.php 85% from 13 tests
The entry point to "Flickr-stream" version 1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flickr-stream.php" instead of "flickrstream.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,244 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 754 | 674 | 1,930 |
CSS | 5 | 103 | 21 | 489 |
PO File | 2 | 186 | 199 | 414 |
JavaScript | 7 | 45 | 28 | 411 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 29.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 2 | 2.15% |
▷ Public methods | 62 | 66.67% |
▷ Protected methods | 21 | 22.58% |
▷ Private methods | 10 | 10.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.91MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
photoswipe/images/icons.png | 5.84KB | 3.80KB | ▼ 35.05% |
screenshot-3.png | 41.77KB | 16.32KB | ▼ 60.92% |
css/flickrstream_icon.png | 4.25KB | 1.64KB | ▼ 61.51% |
screenshot-1.png | 825.26KB | 231.81KB | ▼ 71.91% |
photoswipe/images/icons@2x.png | 9.19KB | 5.50KB | ▼ 40.21% |