Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.32MB] [CPU: ▼683.36ms] Passed 4 tests
Analyzing server-side resources used by Flickr Shortcode Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▲0.63 | 45.71 ▲25.87 |
Dashboard /wp-admin | 2.33 ▼0.72 | 11.65 ▼32.68 |
Posts /wp-admin/edit.php | 2.33 ▼0.77 | 9.99 ▼34.36 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.10 | 11.85 ▼2,645.23 |
Media Library /wp-admin/upload.php | 2.33 ▼0.67 | 9.79 ▼21.18 |
Flickr Shortcode Importer /wp-admin/options-general.php?page=flickr-shortcode-importer-settings | 2.33 | 9.45 |
[flickr] Importer /wp-admin/tools.php?page=flickr-shortcode-importer | 2.33 | 11.83 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 160 new files
Database: no new tables, 1 new option
New WordPress options |
---|
flickr-shortcode-importer-settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Flickr Shortcode Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 16.21 ▲0.62 | 8.59 ▼0.04 | 67.15 ▲16.39 |
Dashboard /wp-admin | 2,980 ▲43 | 5.93 ▼0.26 | 151.30 ▲0.97 | 122.03 ▲17.24 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.69 ▲0.00 | 71.35 ▲4.93 | 95.21 ▲8.47 |
Add New Post /wp-admin/post-new.php | 1,914 ▲242 | 18.87 ▲0.01 | 379.87 ▲12.74 | 116.92 ▲2.55 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.03 ▲0.03 | 140.40 ▼3.38 | 115.18 ▼0.26 |
Flickr Shortcode Importer /wp-admin/options-general.php?page=flickr-shortcode-importer-settings | 1,856 | 2.80 | 67.87 | 113.35 |
[flickr] Importer /wp-admin/tools.php?page=flickr-shortcode-importer | 1,101 | 2.34 | 54.10 | 64.11 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/flickr-shortcode-importer/includes/libraries/screen-meta-links.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks11 has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- flickr-shortcode-importer-settings
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=flickr-shortcode-importer
- > Deprecated in wp-content/plugins/flickr-shortcode-importer/includes/libraries/screen-meta-links.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; wsScreenMetaLinks11 has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flickr-shortcode-importer/includes/libraries/aihrus-framework/includes/libraries/class-redrokk-metabox-class.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/flickr-shortcode-importer/includes/libraries/phpflickr/example.php on line 21
- > PHP Warning
require_once(AIHR_DIR_INCclass-aihrus-settings.php): failed to open stream: No such file or directory in wp-content/plugins/flickr-shortcode-importer/includes/class-flickr-shortcode-importer-settings.php on line 25
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flickr-shortcode-importer/includes/libraries/aihrus-framework/includes/class-aihrus-settings.php on line 24
- > PHP Warning
require_once(FSI_DIR_LIBaihrus-framework/aihrus-framework.php): failed to open stream: No such file or directory in wp-content/plugins/flickr-shortcode-importer/includes/requirements.php on line 19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/flickr-shortcode-importer/includes/libraries/phpflickr/example.php on line 21
- > PHP Fatal error
require_once(): Failed opening required 'AIHR_DIR_INCclass-aihrus-common.php' (include_path='.:/usr/share/php') in wp-content/plugins/flickr-shortcode-importer/includes/class-flickr-shortcode-importer.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'AIHR_DIR_INCclass-aihrus-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/flickr-shortcode-importer/includes/class-flickr-shortcode-importer-settings.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flickr-shortcode-importer/includes/libraries/aihrus-framework/aihrus-framework.php:26
- > PHP Warning
require_once(AIHR_DIR_INCclass-aihrus-common.php): failed to open stream: No such file or directory in wp-content/plugins/flickr-shortcode-importer/includes/class-flickr-shortcode-importer.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'FSI_DIR_LIBaihrus-framework/aihrus-framework.php' (include_path='.:/usr/share/php') in wp-content/plugins/flickr-shortcode-importer/includes/requirements.php on line 19
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=flickr-shortcode-importer-settings
- > Network (severe)
https://www.axelerant.com/wp-content/uploads/2015/02/IGP7228-2015-01-22-at-05-18-02.jpg - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: featured image, photo, video, flickr, import...
flickr-shortcode-importer/flickr-shortcode-importer.php 92% from 13 tests
The main PHP script in "Flickr Shortcode Importer" version 2.2.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected8,983 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,981 | 1,418 | 6,954 |
Markdown | 59 | 352 | 0 | 1,066 |
CSS | 2 | 20 | 34 | 450 |
HTML | 50 | 4 | 3 | 386 |
JavaScript | 1 | 27 | 20 | 98 |
JSON | 1 | 0 | 0 | 21 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 63.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 4 | 30.77% |
▷ Concrete classes | 9 | 69.23% |
▷ Final classes | 0 | 0.00% |
Methods | 438 | |
▷ Static methods | 96 | 21.92% |
▷ Public methods | 399 | 91.10% |
▷ Protected methods | 39 | 8.90% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 27 | 77.14% |
▷ Class constants | 8 | 22.86% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/redmond/images/ui-icons_d8e7f3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 5.69KB | 2.08KB | ▼ 63.46% |
assets/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |
assets/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.33KB | 0.13KB | ▼ 60.36% |
assets/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |