83% wp-remote-thumbnail

Code Review | WP Remote Thumbnail

WordPress plugin WP Remote Thumbnail scored83%from 54 tests.

About plugin

  • Plugin page: wp-remote-thumbnail
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Sep 4, 2023
  • Number of updates: 17
  • Update frequency: every 204.4 days
  • Top authors: Magnigenie (52.94%)sagarseth9 (52.94%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /9,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.17ms] Passed 4 tests

Server-side resources used by WP Remote Thumbnail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.13 ▼0.36
Dashboard /wp-admin3.31 ▲0.0144.80 ▼5.52
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▼5.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.48 ▲3.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼1.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Remote Thumbnail
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▼0.141.61 ▼0.1542.17 ▲2.89
Dashboard /wp-admin2,206 ▲185.77 ▼0.0998.89 ▼4.0840.71 ▼4.36
Posts /wp-admin/edit.php2,092 ▲32.14 ▲0.0941.67 ▲0.0233.51 ▼4.27
Add New Post /wp-admin/post-new.php6,226 ▲4,70725.89 ▲2.87939.81 ▲284.4753.69 ▼9.33
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0198.88 ▲0.7644.16 ▲0.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-remote-thumbnail/wp-remote-thumbnail.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wp remote thumbnail, remote thumbnail, remote featured image, external featured image, url to featured image...

wp-remote-thumbnail/wp-remote-thumbnail.php 77% from 13 tests

"WP Remote Thumbnail" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2304983

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png21.18KB7.94KB▼ 62.53%
screenshot-1.png6.55KB3.00KB▼ 54.15%