Benchmarks
Plugin footprint 82% 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.51MB] [CPU: ▼2.93ms] 75% from 4 tests
An overview of server-side resources used by Album And Photo Gallery For Flickr - Album Flickr Widget
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 513.29ms on /wp-admin/edit.php?post_type=flickr_gallery&page=ag-featured-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 37.90 ▼5.21 |
Dashboard /wp-admin | 3.85 ▲0.54 | 50.22 ▲0.23 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 51.46 ▲5.53 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 94.60 ▼12.26 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 41.80 ▲8.46 |
Our Theme /wp-admin/edit.php?post_type=flickr_gallery&page=sr-theme-page | 3.68 | 35.18 |
All Flickr Gallery /wp-admin/edit.php?post_type=flickr_gallery | 3.71 | 38.56 |
Docs /wp-admin/edit.php?post_type=flickr_gallery&page=ag-doc-page | 3.68 | 35.30 |
Add Flickr Gallery /wp-admin/post-new.php?post_type=flickr_gallery | 3.94 | 49.43 |
Flickr API Settings /wp-admin/edit.php?post_type=flickr_gallery&page=fg-api-settings | 3.69 | 43.40 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.78 | 36.78 |
Featured Plugin /wp-admin/edit.php?post_type=flickr_gallery&page=ag-featured-page | 3.90 | 513.29 |
Server storage [IO: ▲5.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Album And Photo Gallery For Flickr - Album Flickr Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲166 | 13.47 ▼1.06 | 7.71 ▲5.90 | 40.75 ▼6.52 |
Dashboard /wp-admin | 2,279 ▲99 | 5.64 ▲0.04 | 92.29 ▲3.27 | 40.88 ▲0.78 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.02 ▼0.01 | 42.08 ▲0.55 | 42.08 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,595 ▲59 | 23.22 ▲4.90 | 704.39 ▲84.74 | 58.64 ▼20.39 |
Media Library /wp-admin/upload.php | 1,486 ▲86 | 4.36 ▲0.17 | 95.31 ▲1.27 | 43.71 ▲3.28 |
Our Theme /wp-admin/edit.php?post_type=flickr_gallery&page=sr-theme-page | 1,014 | 2.21 | 26.65 | 81.28 |
All Flickr Gallery /wp-admin/edit.php?post_type=flickr_gallery | 1,168 | 2.00 | 34.10 | 33.96 |
Docs /wp-admin/edit.php?post_type=flickr_gallery&page=ag-doc-page | 943 | 2.05 | 26.00 | 36.92 |
Add Flickr Gallery /wp-admin/post-new.php?post_type=flickr_gallery | 2,446 | 4.56 | 88.74 | 309.13 |
Flickr API Settings /wp-admin/edit.php?post_type=flickr_gallery&page=fg-api-settings | 950 | 2.12 | 33.20 | 28.50 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,088 | 2.03 | 22.87 | 30.72 |
Featured Plugin /wp-admin/edit.php?post_type=flickr_gallery&page=ag-featured-page | 3,092 | 1.48 | 33.18 | 155.98 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=flickr_gallery
- > Notice in wp-content/plugins/wp-flickr-gallery/wp-flickr-gallery.php+109
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=flickr_gallery
- > Notice in wp-content/plugins/wp-flickr-gallery/wp-flickr-gallery.php+109
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=flickr_gallery
- > Notice in wp-content/plugins/wp-flickr-gallery/flickr-post-settings.php+124
Trying to access array offset on value of type bool
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
Please fix the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wp-flickr-gallery/class-tgm-plugin-activation.php:2129
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-flickr-gallery/our-theme/awp-theme.php:3
- > PHP Notice
Undefined variable: flickr_user_id in wp-content/plugins/wp-flickr-gallery/flickr-get-album.php on line 5
- > PHP Notice
Undefined variable: flickr_api_key in wp-content/plugins/wp-flickr-gallery/flickr-get-album.php on line 4
- > PHP Notice
Undefined variable: flickr_album_method in wp-content/plugins/wp-flickr-gallery/flickr-get-album.php on line 7
- > PHP Notice
Undefined variable: flickr_album_id in wp-content/plugins/wp-flickr-gallery/flickr-get-album.php on line 6
- > PHP Notice
Undefined variable: flickr_user_id in wp-content/plugins/wp-flickr-gallery/flickr-get-photostream.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-flickr-gallery/featured-plugins/featured-plugins.php:3
- > PHP Notice
Undefined variable: apply_light_box in wp-content/plugins/wp-flickr-gallery/flickr-get-photostream.php on line 107
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/wp-flickr-gallery/flickr-get-album.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=flickr_gallery&page=sr-theme-page
- > Network (severe)
wp-content/plugins/wp-flickr-gallery/our-theme/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=flickr_gallery&page=ag-featured-page
- > Network (severe)
wp-content/plugins/wp-flickr-gallery/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=flickr_gallery&page=ag-featured-page
- > Network (severe)
wp-content/plugins/wp-flickr-gallery/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: album gallery, flickr profile, feed, flickr photo gallery, flickr widget
wp-flickr-gallery/wp-flickr-gallery.php Passed 13 tests
This is the main PHP file of "Album And Photo Gallery For Flickr - Album Flickr Widget" version 1.3.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
A Newly Amazing Different Most Powerful Responsive Easy To Use Flickr Plugin For WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected45,892 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 1,592 | 2,169 | 30,182 |
JavaScript | 11 | 1,175 | 886 | 6,090 |
SVG | 8 | 0 | 0 | 5,940 |
PHP | 11 | 655 | 1,757 | 3,512 |
PO File | 1 | 74 | 81 | 168 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 43.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 5 | 4.13% |
▷ Public methods | 96 | 79.34% |
▷ Protected methods | 25 | 20.66% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 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
5 PNG files occupy 1.08MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pricing-table.png | 42.01KB | 18.43KB | ▼ 56.12% |
img/pricing-table2.png | 80.53KB | 29.22KB | ▼ 63.72% |
img/flickr-responsive-image.png | 698.25KB | 228.98KB | ▼ 67.21% |
img/featured-Image.png | 124.62KB | 39.09KB | ▼ 68.64% |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |