Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼260.56ms] Passed 4 tests
A check of server-side resources used by Slickr Flickr
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.37 ▲0.65 | 38.18 ▲9.67 |
Dashboard /wp-admin | 3.52 ▲0.47 | 47.10 ▲5.42 |
Posts /wp-admin/edit.php | 3.57 ▲0.47 | 41.34 ▼8.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.46 | 96.36 ▼1,034.41 |
Media Library /wp-admin/upload.php | 3.47 ▲0.46 | 31.80 ▼4.71 |
Slickr Flickr /wp-admin/options-general.php?page=slickr-flickr | 3.50 | 30.18 |
Server storage [IO: ▲2.40MB] [DB: ▼0.97MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 147 new files
Database: no new tables, 1 new option
New WordPress options |
---|
slickr_flickr_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Slickr Flickr
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲181 | 16.89 ▲1.30 | 14.33 ▲6.17 | 46.63 ▼1.83 |
Dashboard /wp-admin | 2,935 ▲82 | 6.01 ▲0.20 | 135.27 ▲1.90 | 110.80 ▲16.94 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.69 ▲0.02 | 65.62 ▼6.38 | 91.06 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,656 ▲3 | 18.76 ▲0.02 | 363.53 ▼13.72 | 109.13 ▼3.79 |
Media Library /wp-admin/upload.php | 1,774 ▲2 | 5.00 ▼0.01 | 161.51 ▲4.71 | 107.95 ▼3.26 |
Slickr Flickr /wp-admin/options-general.php?page=slickr-flickr | 2,495 | 3.71 | 103.54 | 144.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▼0.96MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- slickr_flickr_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SimplePie_Misc' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie.php:59
- > PHP Fatal error
Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Cache/DB.php:50
- > PHP Fatal error
Uncaught Error: Class 'SimplePie' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Core.php:53
- > PHP Fatal error
Uncaught Error: Class 'SimplePie_Cache_DB' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Cache/MySQL.php:56
- > PHP Fatal error
Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Cache/Memcache.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/slickr-flickr/slickr-flickr.php:17
- > PHP Fatal error
Uncaught Error: Class 'Slickr_Flickr_Admin' not found in wp-content/plugins/slickr-flickr/classes/class-dashboard.php:2
- > PHP Fatal error
Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Cache/File.php:50
- > PHP Fatal error
Uncaught Error: Class 'Slickr_Flickr_Module' not found in wp-content/plugins/slickr-flickr/classes/class-public.php:2
- > PHP Fatal error
Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/slickr-flickr/classes/simplepie/library/SimplePie/Cache/Memcached.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in slickr-flickr/assets to your readme.txt
slickr-flickr/slickr-flickr.php Passed 13 tests
The main PHP file in "Slickr Flickr" ver. 2.8.1 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Displays photos from Flickr in slideshows and galleries
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin33,335 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 2,396 | 6,955 | 17,026 |
JavaScript | 32 | 3,776 | 2,502 | 11,838 |
CSS | 20 | 99 | 23 | 2,215 |
HTML | 21 | 199 | 65 | 1,959 |
Markdown | 2 | 46 | 0 | 199 |
JSON | 1 | 0 | 0 | 53 |
SQL | 1 | 4 | 4 | 32 |
YAML | 1 | 4 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 808)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 73.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 949.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 808.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 3 | 5.45% |
▷ Concrete classes | 52 | 94.55% |
▷ Final classes | 0 | 0.00% |
Methods | 980 | |
▷ Static methods | 50 | 5.10% |
▷ Public methods | 924 | 94.29% |
▷ Protected methods | 33 | 3.37% |
▷ Private methods | 23 | 2.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 92 | |
▷ Global constants | 82 | 89.13% |
▷ Class constants | 10 | 10.87% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/free-video-tutorials-banner.png | 32.54KB | 9.22KB | ▼ 71.65% |
images/free-video-tutorials-button.png | 8.29KB | 3.44KB | ▼ 58.49% |