Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > User error in wp-content/plugins/wopo-file-converter/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.36ms] Passed 4 tests
Server-side resources used by WoPo File Converter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.64 ▼38.03 |
Dashboard /wp-admin | 2.12 ▼1.23 | 6.35 ▼56.60 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.94 ▼42.49 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.95 ▼88.33 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 7.20 ▼25.73 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 448 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WoPo File Converter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲66 | 14.78 ▲0.58 | 1.60 ▼0.13 | 40.45 ▼11.61 |
Dashboard /wp-admin | 2,225 ▲45 | 5.64 ▲0.04 | 95.96 ▼4.87 | 73.08 ▲26.05 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 1.96 ▼0.04 | 39.79 ▲2.56 | 35.51 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 22.70 ▼0.52 | 688.06 ▲56.91 | 55.71 ▲8.31 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.19 ▼0.07 | 98.83 ▼0.22 | 39.22 ▼3.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User error in wp-content/plugins/wopo-file-converter/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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)
Even though everything seems fine, this is not 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
The following issues need your attention
- 209× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\RequestException' not found in wp-content/plugins/wopo-file-converter/vendor/php-http/httplug/src/Exception/HttpException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Formatter' not found in wp-content/plugins/wopo-file-converter/vendor/php-http/message/src/Formatter/FullHttpMessageFormatter.php:15
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/wopo-file-converter/vendor/symfony/options-resolver/OptionConfigurator.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wopo-file-converter/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Warning
require(wp-content/plugins/wopo-file-converter/vendor/cloudconvert/cloudconvert-php/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wopo-file-converter/vendor/cloudconvert/cloudconvert-php/tests/bootstrap.php on line 2
- > PHP Fatal error
Uncaught LogicException: You cannot use "Http\\Message\\MessageFactory\\GuzzleStreamFactory" as the "php-http/message-factory" package is not installed. Try running "composer require php-http/message-factory". Note that this package is deprecated, use "psr/http-factory" instead in wp-content/plugins/wopo-file-converter/vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php:9
- > PHP Fatal error
Uncaught Error: Class 'CloudConvert\\Models\\Collection' not found in wp-content/plugins/wopo-file-converter/vendor/cloudconvert/cloudconvert-php/src/Models/JobCollection.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Formatter' not found in wp-content/plugins/wopo-file-converter/vendor/php-http/message/src/Formatter/CurlCommandFormatter.php:14
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/wopo-file-converter/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wopo-file-converter/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: converter, convert, wopo file converter, file converter, wopo...
wopo-file-converter/wopo-file-converter.php 77% from 13 tests
The principal PHP file in "WoPo File Converter" v. 1.1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.4" instead of "7.2")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin28,246 lines of code in 417 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 335 | 4,869 | 10,757 | 19,525 |
Markdown | 37 | 2,412 | 0 | 5,465 |
JSON | 36 | 0 | 0 | 3,098 |
YAML | 3 | 15 | 0 | 75 |
XML | 4 | 0 | 0 | 59 |
JavaScript | 1 | 1 | 0 | 15 |
reStructuredText | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 47 | |
Traits | 14 | |
Classes | 253 | |
▷ Abstract classes | 9 | 3.56% |
▷ Concrete classes | 244 | 96.44% |
▷ Final classes | 127 | 52.05% |
Methods | 1,472 | |
▷ Static methods | 211 | 14.33% |
▷ Public methods | 1,243 | 84.44% |
▷ Protected methods | 57 | 3.87% |
▷ Private methods | 172 | 11.68% |
Functions | 167 | |
▷ Named functions | 31 | 18.56% |
▷ Anonymous functions | 136 | 81.44% |
Constants | 96 | |
▷ Global constants | 4 | 4.17% |
▷ Class constants | 92 | 95.83% |
▷ Public constants | 77 | 83.70% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cloudconvert/cloudconvert-php/tests/Integration/files/input.png | 45.84KB | 20.35KB | ▼ 55.61% |