Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-flickr-press/libs/PHPFlickr-Oauth/phpFlickr.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
Server metrics [RAM: ▼1.14MB] [CPU: ▼56.41ms] Passed 4 tests
A check of server-side resources used by wp-flickr-press
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 7.01 ▼34.40 |
Dashboard /wp-admin | 2.87 ▼0.43 | 8.04 ▼46.69 |
Posts /wp-admin/edit.php | 2.87 ▼0.49 | 7.56 ▼45.04 |
Add New Post /wp-admin/post-new.php | 2.87 ▼3.02 | 10.53 ▼99.51 |
Media Library /wp-admin/upload.php | 2.87 ▼0.36 | 7.46 ▼32.19 |
FlickrPress /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php | 2.87 | 7.73 |
Server storage [IO: ▲2.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for wp-flickr-press
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 14.91 ▲0.60 | 1.94 ▼0.07 | 44.90 ▼0.35 |
Dashboard /wp-admin | 2,252 ▲75 | 6.41 ▲0.72 | 124.44 ▲33.62 | 40.41 ▼2.69 |
Posts /wp-admin/edit.php | 2,178 ▲75 | 3.44 ▲1.39 | 47.76 ▲7.48 | 31.28 ▼5.23 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 22.23 ▲4.71 | 586.15 ▼47.16 | 28.59 ▼32.38 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.50 ▲0.31 | 88.02 ▼19.04 | 42.72 ▼8.68 |
FlickrPress /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php | 1,726 | 3.25 | 43.70 | 70.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-flickr-press/libs/PHPFlickr-Oauth/phpFlickr.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php
- > Deprecated in wp-content/plugins/wp-flickr-press/libs/PHPFlickr-Oauth/phpFlickr.php+23
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php
- > Deprecated in wp-content/plugins/wp-flickr-press/libs/PHPFlickr-Oauth/phpFlickr.php+1633
Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-flickr-press/media-upload_search.php
- > /wp-content/plugins/wp-flickr-press/inc.flickr_oauth_callback.php
- > /wp-content/plugins/wp-flickr-press/media-upload_search_thumbnail.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-press/check-setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-press/check-oauth.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-flickr-press/media-send-editor.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-press/check-oauth.php:2
- > PHP Notice
Undefined variable: token in wp-content/plugins/wp-flickr-press/inc.flickr_oauth_callback.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-press/check-setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-flickr-press/check-oauth.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-flickr-press/inc.header_tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-flickr-press/FlickrPress.php:340
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=wp-flickr-press%2FFpAdminSettingEvent.php:214:60)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=wp-flickr-press/FpAdminSettingEvent.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Search), #2 (Insert Post), #3 (Setting config), #4 (FullScreen Writing), #5 (New UI 1), #6 (New UI 2)
wp-flickr-press/wp-flickr-press.php Passed 13 tests
This is the main PHP file of "wp-flickr-press" version 2.6.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Flickr integration for wordpress plugin.
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
There were no executable files found in this plugin5,927 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 482 | 338 | 3,097 |
JavaScript | 10 | 238 | 249 | 2,031 |
PO File | 2 | 182 | 157 | 399 |
CSS | 6 | 49 | 4 | 357 |
Ruby | 1 | 6 | 5 | 32 |
Markdown | 1 | 2 | 0 | 6 |
Bourne Shell | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 280 | |
▷ Static methods | 71 | 25.36% |
▷ Public methods | 273 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 2.50% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 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 2.06MB with 1.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 134.72KB | 41.92KB | ▼ 68.89% |
images/icon-flickr_32.png | 56.74KB | 0.88KB | ▼ 98.45% |
screenshot-4.png | 20.78KB | 7.91KB | ▼ 61.94% |
screenshot-2.png | 86.41KB | 31.40KB | ▼ 63.66% |
screenshot-5.png | 115.75KB | 36.82KB | ▼ 68.19% |