84% auto-save-remote-images

Code Review | Auto Save Remote Image

WordPress plugin Auto Save Remote Image scored84%from 54 tests.

About plugin

  • Plugin page: auto-save-remote-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Nov 9, 2012
  • Number of updates: 25
  • Update frequency: every 1.3 days
  • Top authors: prebhdevsingh (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /16,462 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Auto Save Remote Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.40 ▲7.54
Dashboard /wp-admin3.32 ▲0.0151.40 ▼0.22
Posts /wp-admin/edit.php3.37 ▲0.0151.16 ▲1.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.27 ▼18.73
Media Library /wp-admin/upload.php3.24 ▲0.0140.77 ▲4.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

Browser metrics Passed 4 tests

Auto Save Remote Image: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▲0.262.05 ▲0.0744.54 ▲1.27
Dashboard /wp-admin2,195 ▲155.62 ▼0.0688.58 ▼0.4540.99 ▼0.78
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0138.15 ▼3.7332.33 ▼7.95
Add New Post /wp-admin/post-new.php1,526 ▼223.05 ▲0.02628.32 ▼84.2349.83 ▼1.35
Media Library /wp-admin/upload.php1,394 ▼64.08 ▼0.15114.02 ▲17.1042.00 ▼0.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-save-remote-images/auto-save-remote-images.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 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
4 plugin tags: auto download, featured, remote image, attachment

auto-save-remote-images/auto-save-remote-images.php Passed 13 tests

Analyzing the main PHP file in "Auto Save Remote Image" version 1.3
105 characters long description:
This plugin automatically downloads the first remote image from a post and sets it as the featured image.

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
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin