84% remote-thumbnail

Code Review | Remote Thumbnail

WordPress plugin Remote Thumbnail scored 84% from 54 tests.

About plugin

  • Plugin page: remote-thumbnail
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Aug 6, 2020
  • Number of updates: 4
  • Update frequency: every 380.3 days
  • Top authors: samueldiethelm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,335 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Remote Thumbnail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.49 ▼5.43
Dashboard /wp-admin3.32 ▲0.0145.67 ▼2.59
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▼5.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.08 ▼22.00
Media Library /wp-admin/upload.php3.24 ▲0.0133.92 ▼2.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Remote Thumbnail
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.57 ▼0.691.96 ▲0.0243.43 ▼1.46
Dashboard /wp-admin2,203 ▲125.80 ▼0.0894.21 ▼2.6142.35 ▼2.02
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0140.65 ▼0.6134.98 ▼2.53
Add New Post /wp-admin/post-new.php1,533 ▲1923.01 ▲5.34662.22 ▲48.6853.73 ▲12.48
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0095.37 ▼2.9641.64 ▼0.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remote-thumbnail/remote-thumbnail.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === remote-thumbnail === )
Please take inspiration from this readme.txt

remote-thumbnail/remote-thumbnail.php 92% from 13 tests

The primary PHP file in "Remote Thumbnail" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131033

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity4.00
▷ Minimum method complexity4.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin