Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.58MB] [CPU: ▲16.80ms] Passed 4 tests
A check of server-side resources used by Media Cloud for Amazon S3, Cloudflare R2, Google Cloud Storage, DigitalOcean Spaces and more
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 49.59 ▲8.17 |
Dashboard /wp-admin | 5.08 ▲1.78 | 66.78 ▲17.36 |
Posts /wp-admin/edit.php | 5.13 ▲1.77 | 71.36 ▲24.99 |
Add New Post /wp-admin/post-new.php | 7.60 ▲1.72 | 102.90 ▲16.66 |
Media Library /wp-admin/upload.php | 4.94 ▲1.72 | 66.27 ▲32.61 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 5.21 | 55.24 |
Available Tasks /wp-admin/admin.php?page=media-cloud-tools | 5.18 | 52.90 |
Fix Cloud Metadata /wp-admin/admin.php?page=mcloud-task-fix-metadata | 5.34 | 58.51 |
Task Manager /wp-admin/admin.php?page=media-cloud-task-manager | 5.46 | 57.46 |
Unlink From Cloud /wp-admin/admin.php?page=mcloud-task-unlink-media-task | 5.15 | 53.26 |
Server storage [IO: ▲67.46MB] [DB: ▲0.08MB] 33% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issuesTotal filesystem usage should be limited to 25MB (currently using 67.46MB)
- The plugin illegally modified 14 files (34.64KB) outside of "wp-content/plugins/ilab-media-tools/" and "wp-content/uploads/"
- (new file) wp-content/mcloud-view-cache/6fc6391958ebd718dd874fca1bdc4a79fdf27a9c.php
- (new file) wp-content/mcloud-view-cache/392a58f108b4e0b77b01121aeab150ed793a123a.php
- (new file) wp-content/mcloud-view-cache/c75b9d0a58d9505b403e3ef297044df609eea058.php
- (new file) wp-content/mcloud-view-cache/2ac7e6965dc1cf23a43e6138eabbf1015e39c172.php
- (new file) wp-content/mcloud-view-cache/a9887f2cfe25d8a2a4cb90181e64bff7468c8fb5.php
- (new file) wp-content/mcloud-view-cache/c07901fb291086ed59a7341c30beb149d046d0c1.php
- (new file) wp-content/mcloud-view-cache/39da2b251e54713e7988f83f9031aca5749b5586.php
- (new file) wp-content/mcloud-reports/.empty
- (new file) wp-content/mcloud-view-cache/a4052da34ed380318ab0121df46f115b71076c32.php
- (new file) wp-content/mcloud-view-cache/070729e89e785974a2039244c7ca126f4e07b4ef.php
- ...
Filesystem: 7,788 new files
Database: 4 new tables, 12 new options
New tables |
---|
wp_mcloud_task |
wp_mcloud_task_schedule |
wp_mcloud_task_data |
wp_mcloud_task_token |
New WordPress options |
---|
fs_accounts |
mcloud-has-run |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
widget_theysaidso_widget |
fs_active_plugins |
mcloud-pinned-tools |
can_compress_scripts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Media Cloud for Amazon S3, Cloudflare R2, Google Cloud Storage, DigitalOcean Spaces and more
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲281 | 20.74 ▲6.37 | 1.84 ▲0.12 | 26.78 ▼15.98 |
Dashboard /wp-admin | 2,408 ▲226 | 11.14 ▲6.21 | 293.23 ▲190.94 | 51.43 ▲10.50 |
Posts /wp-admin/edit.php | 2,318 ▲229 | 8.12 ▲6.10 | 80.45 ▲43.29 | 42.69 ▲8.81 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 21.10 ▼2.36 | 612.87 ▼35.50 | 30.83 ▼26.71 |
Media Library /wp-admin/upload.php | 1,606 ▲221 | 10.32 ▲6.19 | 150.55 ▲49.80 | 55.08 ▲12.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,235 | 7.74 | 74.12 | 27.97 |
Tasks /wp-admin/admin.php?page=# | 28 | 0.44 | 0.06 | 4.10 |
Available Tasks /wp-admin/admin.php?page=media-cloud-tools | 1,259 | 7.67 | 71.94 | 83.07 |
Fix Cloud Metadata /wp-admin/admin.php?page=mcloud-task-fix-metadata | 1,448 | 7.70 | 70.81 | 78.94 |
Task Manager /wp-admin/admin.php?page=media-cloud-task-manager | 1,776 | 7.86 | 75.98 | 81.69 |
Unlink From Cloud /wp-admin/admin.php?page=mcloud-task-unlink-media-task | 1,410 | 7.80 | 71.05 | 74.93 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.08MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/ilab-media-tools/external/Freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_mcloud_task_schedule
- wp_mcloud_task
- wp_mcloud_task_data
- wp_mcloud_task_token
- Zombie WordPress options were found after uninstall: 12 options
- mcloud_show_wizard
- theysaidso_admin_options
- widget_recent-comments
- mcloud-pinned-tools
- can_compress_scripts
- fs_active_plugins
- db_upgraded
- fs_debug_mode
- mcloud-has-run
- widget_recent-posts
- ...
Smoke tests 25% 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 0% 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
Please fix the following items
- 299× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/ilab-media-tools/config/video-encoding.config.php
- > /wp-content/plugins/ilab-media-tools/helpers/ilab-media-tool-geometry-helpers.php
- > /wp-content/plugins/ilab-media-tools/classes/Utilities/Helpers.php
- > /wp-content/plugins/ilab-media-tools/views/wizard/imgix/settings.blade.php
- > /wp-content/plugins/ilab-media-tools/classes/Tools/Vision/VisionException.php
- > /wp-content/plugins/ilab-media-tools/views/base/ui/circle-graph.blade.php
- > /wp-content/plugins/ilab-media-tools/classes/Tools/Vision/VisionToolSettings.php
- > /wp-content/plugins/ilab-media-tools/views/base/fields/image.blade.php
- > /wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/error-handler/Resources/views/trace.html.php
- > /wp-content/plugins/ilab-media-tools/classes/Tools/Storage/StorageToolSettings.php
- 3151× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BC_PHPUnit_Framework_TestCase' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-mikey179/vfsstream/src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php:18
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-google/common-protos/src/Api/Billing.php:33
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Symfony\\Component\\Validator\\Exception\\ValidatorException' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/validator/Exception/MappingException.php:14
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/var-dumper/Caster/LinkStub.php:19
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Aws\\AwsClient' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-aws/aws-sdk-php/src/PersonalizeRuntime/PersonalizeRuntimeClient.php:13
- > PHP Fatal error
Uncaught Error: Interface 'MediaCloud\\Vendor\\Grpc\\CallInvoker' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-grpc/grpc/src/lib/DefaultCallInvoker.php:25
- > PHP Fatal error
Uncaught Error: Interface 'MediaCloud\\Vendor\\Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php:24
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-google/common-protos/src/Api/Expr/V1beta1/EnumValue.php:15
- > PHP Fatal error
Uncaught Error: Interface 'MediaCloud\\Vendor\\Symfony\\Component\\Serializer\\Mapping\\Loader\\LoaderInterface' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/serializer/Mapping/Loader/LoaderChain.php:27
- > PHP Fatal error
Uncaught Error: Class 'MediaCloud\\Vendor\\Symfony\\Component\\Mime\\Part\\AbstractPart' not found in wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/mime/Part/TextPart.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=#
- > Network (severe)
wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
ilab-media-tools/ilab-media-tools.php 92% from 13 tests
"Media Cloud for Amazon S3, Cloudflare R2, Google Cloud Storage, DigitalOcean Spaces and more" version 4.5.24's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/ilab-media-tools/lib/mcloud-nesbot/carbon/bin/carbon.bat
- ☣ wp-content/plugins/ilab-media-tools/lib/mcloud-aws/aws-crt-php/run_tests.bat
- .exe - Executable in Windows
- ☣ wp-content/plugins/ilab-media-tools/lib/mcloud-symfony/console/Resources/bin/hiddeninput.exe
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ilab-media-tools/lib/mcloud-shortpixel/shortpixel-php/lib/data/shortpixel.crt
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6,683 | 90,064 | 280,729 | 437,012 |
JSON | 160 | 0 | 0 | 28,340 |
XML | 56 | 0 | 1 | 21,764 |
Blade | 169 | 214 | 25 | 4,009 |
XSD | 7 | 175 | 50 | 3,533 |
Markdown | 26 | 570 | 0 | 2,013 |
JavaScript | 29 | 113 | 1,022 | 1,297 |
C | 12 | 285 | 159 | 1,014 |
CSS | 24 | 34 | 56 | 508 |
C/C++ Header | 3 | 115 | 56 | 466 |
Bourne Shell | 9 | 33 | 21 | 249 |
SVG | 106 | 0 | 5 | 179 |
YAML | 5 | 9 | 10 | 112 |
make | 4 | 30 | 24 | 87 |
Bourne Again Shell | 3 | 15 | 14 | 72 |
Protocol Buffers | 2 | 14 | 38 | 64 |
m4 | 2 | 15 | 18 | 60 |
reStructuredText | 1 | 35 | 29 | 59 |
GLSL | 1 | 17 | 0 | 55 |
Python | 1 | 16 | 45 | 54 |
Dockerfile | 3 | 14 | 2 | 27 |
Pascal | 1 | 5 | 15 | 14 |
diff | 1 | 2 | 12 | 7 |
DOS Batch | 2 | 2 | 0 | 6 |
INI | 2 | 0 | 0 | 3 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 1,239 | |
Interfaces | 477 | |
Traits | 202 | |
Classes | 4,143 | |
▷ Abstract classes | 159 | 3.84% |
▷ Concrete classes | 3,984 | 96.16% |
▷ Final classes | 362 | 9.09% |
Methods | 28,351 | |
▷ Static methods | 3,872 | 13.66% |
▷ Public methods | 23,651 | 83.42% |
▷ Protected methods | 1,837 | 6.48% |
▷ Private methods | 2,863 | 10.10% |
Functions | 2,352 | |
▷ Named functions | 607 | 25.81% |
▷ Anonymous functions | 1,745 | 74.19% |
Constants | 2,647 | |
▷ Global constants | 276 | 10.43% |
▷ Class constants | 2,371 | 89.57% |
▷ Public constants | 2,156 | 90.93% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.49MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/wm-align-bottom-left.png | 19.52KB | 0.14KB | ▼ 99.28% |
external/Freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/img/ilab-imgix-red-eye.png | 14.70KB | 1.02KB | ▼ 93.06% |
public/img/wm-align-bottom-right.png | 19.51KB | 0.14KB | ▼ 99.27% |
external/Freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |