74% image-processing-queue

Code Review | Image Processing Queue

WordPress plugin Image Processing Queue scored74%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: 6.3.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 /5,735 total downloads

Benchmarks

Plugin footprint 65% 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.01MB] [CPU: ▼1.11ms] Passed 4 tests

A 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.48 ▲0.0237.08 ▼4.10
Dashboard /wp-admin3.32 ▲0.0149.61 ▼2.53
Posts /wp-admin/edit.php3.43 ▲0.0746.23 ▲2.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.11 ▲2.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.48 ▲0.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 272 new files
Database: 2 new tables, 6 new options
New tables
wp_queue_jobs
wp_queue_failures
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Image Processing Queue
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.211.70 ▼0.3042.53 ▼0.61
Dashboard /wp-admin2,200 ▲125.79 ▲0.91102.51 ▼14.3240.52 ▼5.45
Posts /wp-admin/edit.php2,089 ▲212.06 ▲0.0140.22 ▼3.0334.05 ▼1.57
Add New Post /wp-admin/post-new.php1,547 ▲1418.25 ▼4.91593.68 ▼76.8471.54 ▲23.34
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0394.94 ▼6.2741.80 ▼4.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_queue_failures
    • wp_queue_jobs
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 89× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Loader/MoFileLoader.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Util/ArrayConverterTest.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: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Loader/LocalizedTestCase.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Dumper/CsvFileDumper.php:21
    • > 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: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Exception/InvalidResourceException.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Loader/ArrayLoader.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Loader/JsonFileLoaderTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/image-processing-queue/vendor/symfony/translation/Tests/Dumper/XliffFileDumperTest.php:18

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: theme, image resizing, image processing, feature-plugin, thumbnails

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

Analyzing the main PHP file in "Image Processing Queue" version 1.1.1
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin18,260 lines of code in 241 files:
LanguageFilesBlank linesComment linesLines of code
PHP1902,5236,08312,024
XSD499764,991
JSON1000488
Markdown81660393
XML1530291
PO File67037
YAML64025
Qt Linguist10010
INI1001

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods 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
Namespaces25
Interfaces10
Traits0
Classes117
▷ Abstract classes97.69%
▷ Concrete classes10892.31%
▷ Final classes10.93%
Methods867
▷ Static methods11112.80%
▷ Public methods72583.62%
▷ Protected methods829.46%
▷ Private methods606.92%
Functions55
▷ Named functions4276.36%
▷ Anonymous functions1323.64%
Constants36
▷ 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