77% archive-remote-images

Code Review | Archive Remote Images

WordPress plugin Archive Remote Images scored77%from 54 tests.

About plugin

  • Plugin page: archive-remote-im...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 27, 2012
  • Latest release: Feb 27, 2015
  • Number of updates: 23
  • Update frequency: every 34.5 days
  • Top authors: kasonzhao (91.3%)grosbouff (13.04%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /8,133 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.14ms] Passed 4 tests

An overview of server-side resources used by Archive Remote Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.48 ▼2.11
Dashboard /wp-admin3.45 ▲0.1444.35 ▼3.12
Posts /wp-admin/edit.php3.56 ▲0.2047.28 ▼0.57
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.61 ▼18.77
Media Library /wp-admin/upload.php3.37 ▲0.1434.58 ▲0.64
Archive Remote Images /wp-admin/options-general.php?page=ari-admin3.3229.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
_ari_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
_ari_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Archive Remote Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.07 ▼0.111.72 ▲0.0239.45 ▲0.31
Dashboard /wp-admin2,193 ▲195.55 ▼0.0482.83 ▼1.9236.43 ▼2.99
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0440.67 ▲3.1336.60 ▲6.20
Add New Post /wp-admin/post-new.php6,231 ▲4,69625.91 ▲7.55917.15 ▲289.7673.18 ▲5.28
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.03103.00 ▼6.7244.77 ▼0.80
Archive Remote Images /wp-admin/options-general.php?page=ari-admin1,0152.0322.4028.70

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • _ari_db_version
    • widget_recent-comments
    • _ari_options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=ari-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ari-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just 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/archive-remote-images/archive-remote-images.php:708

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots require images: #1 (Metabox shown in the editor), #2 (Settings page)
Please take inspiration from this readme.txt

archive-remote-images/archive-remote-images.php 85% from 13 tests

The main file in "Archive Remote Images" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected735 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2292194735
JavaScript1230

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity45.00
▷ Minimum class complexity25.00
▷ Maximum class complexity65.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods57
▷ Static methods11.75%
▷ Public methods5698.25%
▷ Protected methods00.00%
▷ Private methods11.75%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.34KB6.50KB▼ 11.44%
screenshot-2.png21.93KB20.46KB▼ 6.70%