84% archivarix-external-images-importer

Code Review | Archivarix External Images Importer

WordPress plugin Archivarix External Images Importer scored84%from 54 tests.

About plugin

  • Plugin page: archivarix-extern...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2019
  • Latest release: Jul 19, 2022
  • Number of updates: 12
  • Update frequency: every 80.4 days
  • Top authors: archivarixsupport (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /16,934 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.22MB] [CPU: ▼4.49ms] Passed 4 tests

An overview of server-side resources used by Archivarix External Images Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2236.96 ▼6.44
Dashboard /wp-admin3.52 ▲0.2245.80 ▼3.28
Posts /wp-admin/edit.php3.63 ▲0.2846.35 ▼6.38
Add New Post /wp-admin/post-new.php6.10 ▲0.2292.47 ▲1.11
Media Library /wp-admin/upload.php3.44 ▲0.2235.41 ▼1.86
Archivarix External Images Importer /wp-admin/options-general.php?page=ArchivarixExternalImagesImporter3.4432.90

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Archivarix External Images Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼0.953.99 ▲2.1440.86 ▼2.12
Dashboard /wp-admin2,213 ▲254.85 ▼0.13104.59 ▼7.6043.53 ▼3.74
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0436.07 ▼0.5035.43 ▲0.97
Add New Post /wp-admin/post-new.php1,536 ▲323.26 ▼0.02611.87 ▼79.3751.11 ▼11.68
Media Library /wp-admin/upload.php1,383 ▼54.19 ▲0.07103.12 ▼9.3242.09 ▼1.70
Archivarix External Images Importer /wp-admin/options-general.php?page=ArchivarixExternalImagesImporter1,0692.1833.4129.00

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'ArchivarixExternalImagesImporter\\Lib\\WpAsyncRequest' not found in wp-content/plugins/archivarix-external-images-importer/src/ArchivarixExternalImagesImporter/Lib/WpBackgroundProcess.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ArchivarixExternalImagesImporter\\Lib\\WpBackgroundProcess' not found in wp-content/plugins/archivarix-external-images-importer/src/ArchivarixExternalImagesImporter/Background/BackgroundProcess.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ArchivarixExternalImagesImporter\\Lib\\WpBackgroundProcess' not found in wp-content/plugins/archivarix-external-images-importer/src/ArchivarixExternalImagesImporter/Background/AsyncPush.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

archivarix-external-images-importer/archivarix-external-images-importer.php 92% from 13 tests

The principal PHP file in "Archivarix External Images Importer" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Good job! No executable or dangerous file extensions detected2,456 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP216515922,259
PO File16478127
JavaScript213063
LESS1206
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.90
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes00.00%
Methods155
▷ Static methods127.74%
▷ Public methods11976.77%
▷ Protected methods2918.71%
▷ Private methods74.52%
Functions14
▷ Named functions17.14%
▷ Anonymous functions1392.86%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected