84% flickr-fallback-thumbnail

Code Review | Flickr Fallback Thumbnail

WordPress plugin Flickr Fallback Thumbnail scored84%from 54 tests.

About plugin

  • Plugin page: flickr-fallback-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.01
  • WordPress version: 6.3.1
  • First release: Nov 29, 2014
  • Latest release: Nov 29, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: kamiel79 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.33ms] Passed 4 tests

Server-side resources used by Flickr Fallback Thumbnail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.12 ▼5.44
Dashboard /wp-admin3.32 ▲0.0240.00 ▼4.34
Posts /wp-admin/edit.php3.37 ▲0.0143.95 ▼3.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.90 ▲0.58
Media Library /wp-admin/upload.php3.24 ▲0.0133.56 ▲0.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flickr Fallback Thumbnail
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.131.62 ▼0.1037.69 ▼6.18
Dashboard /wp-admin2,189 ▲95.64 ▲0.0494.92 ▲7.2342.83 ▲1.91
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0242.47 ▲1.9136.80 ▲0.36
Add New Post /wp-admin/post-new.php1,534 ▼318.21 ▲0.20612.51 ▼12.1358.93 ▼7.24
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0296.70 ▼11.3341.51 ▼5.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flickr-fallback-thumbnail/flickr-fallback-thumbnail.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: flickr, featured image, wordpressorg, thumbnail, wordpress...

flickr-fallback-thumbnail/flickr-fallback-thumbnail.php Passed 13 tests

The principal PHP file in "Flickr Fallback Thumbnail" v. 1.0 is loaded by WordPress automatically on each request
75 characters long description:
Automatically grab a fallback featured image if your post doesn't have one!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141248

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin