Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.58ms] Passed 4 tests
An overview of server-side resources used by Flickr Photostream
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.72 ▼5.75 |
Dashboard /wp-admin | 3.44 ▲0.14 | 64.61 ▲12.84 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 52.81 ▼0.61 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 96.51 ▼9.56 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.26 ▲5.59 |
Flickr Photostream /wp-admin/options-general.php?page=flickrps | 3.33 | 37.51 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Flickr Photostream
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲168 | 13.88 ▼0.31 | 7.72 ▲5.28 | 39.94 ▼7.95 |
Dashboard /wp-admin | 2,219 ▲31 | 4.85 ▼1.06 | 106.28 ▼3.77 | 41.79 ▲2.84 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.06 ▲0.06 | 38.19 ▼2.42 | 31.78 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 23.15 ▼0.11 | 644.30 ▲4.19 | 50.36 ▼8.96 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.28 ▼0.00 | 111.42 ▼7.30 | 52.51 ▲6.12 |
Flickr Photostream /wp-admin/options-general.php?page=flickrps | 1,491 | 2.15 | 28.40 | 45.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/flickr-photostream/phpFlickr/example.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-photostream/flickr-photostream-setting.php:34
- > PHP Parse error
syntax error, unexpected 'unset' (T_UNSET) in wp-content/plugins/flickr-photostream/phpFlickr/auth.php on line 17
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/flickr-photostream/phpFlickr/example.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flickr-photostream/flickr-photostream.php:41
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (A tipical Photosream), #2 (A Photostream with more pages), #3 (The captions)
flickr-photostream/flickr-photostream.php Passed 13 tests
The principal PHP file in "Flickr Photostream" v. 3.1.8 is loaded by WordPress automatically on each request
89 characters long description:
Shows the flickr photostream, sets and galleries, with an high quality justified gallery.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,053 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 425 | 431 | 2,100 |
PO File | 2 | 353 | 692 | 774 |
Markdown | 1 | 53 | 0 | 174 |
CSS | 2 | 0 | 6 | 2 |
JavaScript | 2 | 0 | 7 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 201 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
swipebox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |