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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.08 ▼4.10 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.61 ▼2.53 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.23 ▲2.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.11 ▲2.52 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.21 | 1.70 ▼0.30 | 42.53 ▼0.61 |
Dashboard /wp-admin | 2,200 ▲12 | 5.79 ▲0.91 | 102.51 ▼14.32 | 40.52 ▼5.45 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 2.06 ▲0.01 | 40.22 ▼3.03 | 34.05 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.25 ▼4.91 | 593.68 ▼76.84 | 71.54 ▲23.34 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.03 | 94.94 ▼6.27 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 190 | 2,523 | 6,083 | 12,024 |
XSD | 4 | 99 | 76 | 4,991 |
JSON | 10 | 0 | 0 | 488 |
Markdown | 8 | 166 | 0 | 393 |
XML | 15 | 3 | 0 | 291 |
PO File | 6 | 7 | 0 | 37 |
YAML | 6 | 4 | 0 | 25 |
Qt Linguist | 1 | 0 | 0 | 10 |
INI | 1 | 0 | 0 | 1 |
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 code | 0.30 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 117 | |
▷ Abstract classes | 9 | 7.69% |
▷ Concrete classes | 108 | 92.31% |
▷ Final classes | 1 | 0.93% |
Methods | 867 | |
▷ Static methods | 111 | 12.80% |
▷ Public methods | 725 | 83.62% |
▷ Protected methods | 82 | 9.46% |
▷ Private methods | 60 | 6.92% |
Functions | 55 | |
▷ Named functions | 42 | 76.36% |
▷ Anonymous functions | 13 | 23.64% |
Constants | 36 | |
▷ Global constants | 3 | 8.33% |
▷ Class constants | 33 | 91.67% |
▷ Public constants | 33 | 100.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