Benchmarks
Plugin footprint Passed 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: ▼301.43ms] Passed 4 tests
A check of server-side resources used by Flickr Justified Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.21 | 64.59 ▲9.10 |
Dashboard /wp-admin | 3.57 ▲0.17 | 34.43 ▼29.85 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 41.99 ▲5.26 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.08 | 95.19 ▼1,187.97 |
Media Library /wp-admin/upload.php | 3.46 ▲0.17 | 31.40 ▲6.86 |
Flickr Justified Gallery /wp-admin/options-general.php?page=fjgwpp | 3.43 | 34.02 |
Server storage [IO: ▲2.11MB] [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: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Flickr Justified Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,892 ▲166 | 16.35 ▲0.69 | 9.62 ▲4.10 | 2.37 ▼0.09 |
Dashboard /wp-admin | 2,880 ▲19 | 6.11 ▼0.13 | 124.05 ▼15.20 | 198.27 ▲37.71 |
Posts /wp-admin/edit.php | 2,690 ▲20 | 3.23 ▼0.01 | 64.35 ▼16.64 | 143.48 ▼24.16 |
Add New Post /wp-admin/post-new.php | 1,639 ▼0 | 18.16 ▲1.85 | 413.83 ▼36.68 | 155.87 ▲10.13 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.49 ▼0.04 | 175.74 ▲23.89 | 204.57 ▲8.02 |
Flickr Justified Gallery /wp-admin/options-general.php?page=fjgwpp | 2,179 | 2.38 | 60.25 | 170.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/flickr-justified-gallery/phpFlickr/example.php on line 21
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/flickr-justified-gallery/phpFlickr/example.php on line 21
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/example.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/flickr-justified-gallery/flickr-justified-gallery-settings.php:26
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/flickr-justified-gallery/phpFlickr_a1/example.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flickr-justified-gallery/flickr-justified-gallery.php:45
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (A typical photostream), #2 (A photostream with more pages), #3 (The captions)
flickr-justified-gallery/flickr-justified-gallery.php Passed 13 tests
Analyzing the main PHP file in "Flickr Justified Gallery" version 3.5
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,482 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 686 | 766 | 3,450 |
PO File | 2 | 385 | 876 | 796 |
Markdown | 1 | 53 | 0 | 174 |
CSS | 4 | 5 | 22 | 40 |
JavaScript | 4 | 2 | 17 | 21 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 99.25 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 402 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 402 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lightboxes/swipebox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |
lightboxes/colorbox/images/controls.png | 0.49KB | 0.57KB | 0.00% |