84% slickr-flickr

Code Review | Slickr Flickr

WordPress plugin Slickr Flickr scored 84% from 53 tests.

About plugin

  • Plugin page: slickr-flickr
  • Plugin version: 2.8.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6.1
  • WordPress version: 5.8.1
  • First release: Mar 3, 2010
  • Latest release: Feb 9, 2021
  • Number of updates: 159
  • Update frequency: every 25.1 days
  • Top authors: powerblogservice (100%)

Code review

53 tests

User reviews

10 reviews

Install metrics

6,000+ active / 285,008 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.37 ▲0.6538.18 ▲9.67
Dashboard /wp-admin3.52 ▲0.4747.10 ▲5.42
Posts /wp-admin/edit.php3.57 ▲0.4741.34 ▼8.54
Add New Post /wp-admin/post-new.php5.89 ▲0.4696.36 ▼1,034.41
Media Library /wp-admin/upload.php3.47 ▲0.4631.80 ▼4.71
Slickr Flickr /wp-admin/options-general.php?page=slickr-flickr3.5030.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,787 ▲18116.89 ▲1.3014.33 ▲6.1746.63 ▼1.83
Dashboard /wp-admin2,935 ▲826.01 ▲0.20135.27 ▲1.90110.80 ▲16.94
Posts /wp-admin/edit.php2,711 ▲82.69 ▲0.0265.62 ▼6.3891.06 ▼1.16
Add New Post /wp-admin/post-new.php1,656 ▲318.76 ▲0.02363.53 ▼13.72109.13 ▼3.79
Media Library /wp-admin/upload.php1,774 ▲25.00 ▼0.01161.51 ▲4.71107.95 ▼3.26
Slickr Flickr /wp-admin/options-general.php?page=slickr-flickr2,4953.71103.54144.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP562,3966,95517,026
JavaScript323,7762,50211,838
CSS2099232,215
HTML21199651,959
Markdown2460199
JSON10053
SQL14432
YAML14013

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 code0.63
Average class complexity73.91
▷ Minimum class complexity1.00
▷ Maximum class complexity949.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity808.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes55
▷ Abstract classes35.45%
▷ Concrete classes5294.55%
▷ Final classes00.00%
Methods980
▷ Static methods505.10%
▷ Public methods92494.29%
▷ Protected methods333.37%
▷ Private methods232.35%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants92
▷ Global constants8289.13%
▷ Class constants1010.87%
▷ Public constants10100.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
FileSize - originalSize - compressedSavings
images/free-video-tutorials-banner.png32.54KB9.22KB▼ 71.65%
images/free-video-tutorials-button.png8.29KB3.44KB▼ 58.49%