84% image-processing-queue

Code Review | Image Processing Queue

WordPress plugin Image Processing Queue scored 84% from 54 tests.

About plugin

  • Plugin page: image-processing-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 5.8.1
  • First release: Mar 7, 2017
  • Latest release: May 3, 2019
  • Number of updates: 10
  • Update frequency: every 78.7 days
  • Top authors: deliciousbrains (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active / 4,806 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼150.58ms] Passed 4 tests

This is a short check of server-side resources used by Image Processing Queue
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.07 ▲0.2229.02 ▲1.70
Dashboard /wp-admin3.30 ▲0.2338.76 ▼3.48
Posts /wp-admin/edit.php3.35 ▲0.2435.67 ▲1.28
Add New Post /wp-admin/post-new.php5.60 ▲0.1674.57 ▼601.15
Media Library /wp-admin/upload.php3.18 ▲0.1724.88 ▲1.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 272 new files
Database: 2 new tables, no new options
New tables

Browser metrics Passed 4 tests

An overview of browser requirements for Image Processing Queue
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.94 ▲0.275.44 ▼0.6776.89 ▼0.58
Dashboard /wp-admin2,930 ▲376.01 ▼0.15125.44 ▼4.03178.68 ▲3.25
Posts /wp-admin/edit.php2,740 ▼03.24 ▲0.0264.40 ▲2.58133.62 ▼4.05
Add New Post /wp-admin/post-new.php3,815 ▲219.22 ▼0.21408.92 ▼48.48153.00 ▼10.05
Media Library /wp-admin/upload.php1,749 ▼35.49 ▼0.02136.99 ▼0.32185.48 ▲2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_queue_jobs
    • wp_queue_failures

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 89× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Dumper/PhpFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Queue\\Job' not found in wp-content/plugins/image-processing-queue/src/Image_Processing_Queue/Resize_Job.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/IntervalTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Loader/MoFileLoaderTest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Queue\\Connections\\ConnectionInterface' not found in wp-content/plugins/image-processing-queue/vendor/a5hleyrich/wp-queue/src/WP_Queue/Connections/RedisConnection.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Dumper/PhpFileDumperTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Tests\\Loader\\LocalizedTestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Loader/IcuResFileLoaderTest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Dumper/FileDumperTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\IcuResFileLoader' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Loader/IcuDatFileLoader.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Dumper/JsonFileDumperTest.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: theme, feature-plugin, thumbnails, image resizing, image processing

image-processing-queue/image-processing-queue.php 92% from 13 tests

The primary PHP file in "Image Processing Queue" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,260 lines of code in 241 files:
LanguageFilesBlank linesComment linesLines of code
PO File67037
Qt Linguist10010

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.46
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
▷ Abstract classes97.69%
▷ Concrete classes10892.31%
▷ Final classes10.93%
▷ Static methods11112.80%
▷ Public methods72583.62%
▷ Protected methods829.46%
▷ Private methods606.92%
▷ Named functions4276.36%
▷ Anonymous functions1323.64%
▷ Global constants38.33%
▷ Class constants3391.67%
▷ Public constants33100.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
There were not PNG files found in your plugin