Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-flickr-embed/wp-flickr-embed.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; WpFlickrEmbed has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.85ms] Passed 4 tests
Server-side resources used by Wordpress Flickr Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 5.38 ▼40.76 |
Dashboard /wp-admin | 2.17 ▼1.14 | 5.41 ▼43.85 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 8.63 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.59 ▼93.12 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.21 ▼35.55 |
WP Flickr Embed /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php | 2.17 | 7.25 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
WpFlickrEmbed |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Flickr Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 14.48 ▼0.27 | 2.33 ▲0.07 | 40.72 ▲3.04 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▲0.89 | 96.18 ▼18.53 | 39.12 ▼9.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 35.83 ▼3.88 | 33.19 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 22.61 ▲5.13 | 582.07 ▼91.06 | 43.26 ▼8.39 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.04 | 95.13 ▼18.64 | 42.09 ▼6.68 |
WP Flickr Embed /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php | 1,054 | 4.75 | 49.85 | 40.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-flickr-embed/wp-flickr-embed.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; WpFlickrEmbed has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- WpFlickrEmbed
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php
- > Deprecated in wp-content/plugins/wp-flickr-embed/wp-flickr-embed.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; WpFlickrEmbed has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php
- > Notice in wp-content/plugins/wp-flickr-embed/wp-flickr-embed.php+122
Undefined property: WpFlickrEmbed::$_disabled
- > GET request to /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php
- > Notice in wp-content/plugins/wp-flickr-embed/include/class.admin-page.php+32
Undefined index: auth_result
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-flickr-embed/include/pages/admin.php
- > Notice in wp-content/plugins/wp-flickr-embed/include/class.admin-page.php+51
Undefined index: action
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WpFlickrEmbed_Admin_Page' not found in wp-content/plugins/wp-flickr-embed/include/pages/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-flickr-embed/wp-flickr-embed-upload-frame.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-flickr-embed/wp-flickr-embed.php:56
- > PHP Fatal error
Uncaught Error: Interface 'WPFlickrEmbed_Constants' not found in wp-content/plugins/wp-flickr-embed/include/class.admin-page.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The Wordpress Flickr Embed panel that appears on the post insertion screen) image not found
wp-flickr-embed/wp-flickr-embed.php Passed 13 tests
This is the main PHP file of "Wordpress Flickr Embed" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Insert Flickr images into your post using an interactive popup, launched from the visual editor toolbar.
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 detected1,750 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 229 | 326 | 935 |
JavaScript | 2 | 242 | 202 | 613 |
CSS | 2 | 12 | 3 | 202 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 67.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 32.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 1 | 2.86% |
▷ Class constants | 34 | 97.14% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/size_square.png | 0.35KB | 0.12KB | ▼ 64.72% |
images/size_medium.png | 0.35KB | 0.13KB | ▼ 62.82% |
images/alignment_none.png | 0.31KB | 0.10KB | ▼ 66.03% |
images/size_large.png | 0.26KB | 0.12KB | ▼ 53.82% |
screenshot-1.png | 117.31KB | 41.25KB | ▼ 64.84% |