68% flickr-slideshow-wrapper

Code Review | flickr-slideshow-wrapper

WordPress plugin flickr-slideshow-wrapper scored 68% from 54 tests.

About plugin

  • Plugin page: flickr-slideshow-...
  • Plugin version: 5.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-3.8.1
  • WordPress version: 6.3.1
  • First release: May 22, 2008
  • Latest release: Jan 10, 2015
  • Number of updates: 128
  • Update frequency: every 19.0 days
  • Top authors: jeannot.muller (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 46,343 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼34.24ms] Passed 4 tests

Analyzing server-side resources used by flickr-slideshow-wrapper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.55 ▼4.92
Dashboard /wp-admin3.01 ▼0.2923.41 ▼26.77
Posts /wp-admin/edit.php3.01 ▼0.3422.57 ▼24.25
Add New Post /wp-admin/post-new.php3.01 ▼2.8721.03 ▼73.01
Media Library /wp-admin/upload.php3.01 ▼0.2224.67 ▼12.92
FSSW /wp-admin/options-general.php?page=flickr-slideshow-wrapper/flickr-slideshow-wrapper.php3.0123.74

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for flickr-slideshow-wrapper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.031.71 ▼0.3040.24 ▼8.65
Dashboard /wp-admin2,207 ▲194.92 ▲0.0098.76 ▼5.6937.44 ▼4.45
Posts /wp-admin/edit.php2,072 ▼172.04 ▲0.0132.67 ▼2.4631.97 ▼3.12
Add New Post /wp-admin/post-new.php1,536 ▲1723.14 ▼0.02622.68 ▼9.8850.21 ▲0.94
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.0594.70 ▼5.6143.14 ▼2.69
FSSW /wp-admin/options-general.php?page=flickr-slideshow-wrapper/flickr-slideshow-wrapper.php8922.0221.8326.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > 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.
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=flickr-slideshow-wrapper/flickr-slideshow-wrapper.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.

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-slideshow-wrapper/flickr-slideshow-wrapper.php:38

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Option panel. Many thanks to Cory Shubert who authorized me to use some of his pictures for the screenshots you can find in the deployment package and here!), #2 (Slideshow (main view)), #3 (Slideshow (detailed view))
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

flickr-slideshow-wrapper/flickr-slideshow-wrapper.php 92% from 13 tests

The principal PHP file in "flickr-slideshow-wrapper" v. 5.4.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 805 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262383

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 code0.16
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.25MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png54.53KB25.10KB▼ 53.97%
screenshot-2.png124.46KB65.47KB▼ 47.40%
screenshot-1.png78.60KB28.35KB▼ 63.93%