Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.26ms] 75% from 4 tests
A check of server-side resources used by PDF Compressor & Watermark - iLovePDF
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 772.29ms on /wp-admin/upload.php?page=ilove-pdf-content-statistics)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.93 ▼1.67 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.93 ▼9.21 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.02 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.94 ▼15.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.22 ▲4.15 |
iLovePDF /wp-admin/upload.php?page=ilove-pdf-content-statistics | 3.27 | 772.29 |
iLovePDF /wp-admin/options-general.php?page=ilove-pdf-content-setting | 3.28 | 37.12 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 310 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
ilove_pdf_display_settings_watermark |
ilovepdf_initial_pdf_files_size |
ilove_pdf_display_settings_format_watermark |
widget_recent-comments |
ilove_pdf_display_settings_compress |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Compressor & Watermark - iLovePDF
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲114 | 14.73 ▲0.46 | 1.71 ▼0.16 | 42.40 ▼3.04 |
Dashboard /wp-admin | 2,260 ▲83 | 4.88 ▼0.74 | 106.26 ▲8.95 | 39.89 ▼9.48 |
Posts /wp-admin/edit.php | 2,184 ▲81 | 2.35 ▲0.34 | 43.10 ▼0.53 | 31.06 ▼6.79 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 23.29 ▲0.70 | 651.99 ▲50.90 | 35.53 ▼13.50 |
Media Library /wp-admin/upload.php | 1,476 ▲82 | 4.46 ▲0.27 | 107.22 ▲3.33 | 42.00 ▼0.92 |
iLovePDF /wp-admin/upload.php?page=ilove-pdf-content-statistics | 902 | 2.08 | 31.23 | 24.73 |
iLovePDF /wp-admin/options-general.php?page=ilove-pdf-content-setting | 1,184 | 3.42 | 43.02 | 58.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- ilove_pdf_display_settings_watermark
- widget_theysaidso_widget
- ilove_pdf_display_settings_compress
- ilovepdf_watermarked_files
- widget_recent-comments
- ilove_pdf_display_settings_format_watermark
- ilovepdf_compressed_files
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ilovepdf/admin/partials/ilove-pdf-admin-display.php
- 182× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ilovepdf\\Sign\\Elements\\ElementAbstract' not found in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/src/Sign/Elements/ElementName.php:6
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/samples/unlock_advanced.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/ilovepdf/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/samples/unlock_advanced.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ilovepdf/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Ilovepdf\\Sign\\Elements\\ElementAbstract' not found in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/src/Sign/Elements/ElementInitials.php:6
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/ilovepdf/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Ilovepdf\\Sign\\Elements\\ElementAbstract' not found in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/src/Sign/Elements/ElementDate.php:6
- > PHP Fatal error
require_once(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/ilovepdf/vendor/ilovepdf/ilovepdf-php/samples/watermark_basic.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/ilovepdf/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% 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 your attention:
- Screenshots: Screenshot #4 (PDF actions) image required
ilovepdf/ilove-pdf.php 77% from 13 tests
The entry point to "PDF Compressor & Watermark - iLovePDF" version 2.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 202 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ilovepdf.php" instead of "ilove-pdf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin25,474 lines of code in 292 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 247 | 3,869 | 9,385 | 16,647 |
Markdown | 23 | 1,682 | 0 | 4,551 |
CSS | 4 | 73 | 39 | 2,174 |
JSON | 13 | 0 | 0 | 1,621 |
JavaScript | 1 | 58 | 40 | 390 |
XML | 3 | 0 | 0 | 72 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 27 | |
Traits | 4 | |
Classes | 148 | |
▷ Abstract classes | 2 | 1.35% |
▷ Concrete classes | 146 | 98.65% |
▷ Final classes | 36 | 24.66% |
Methods | 1,161 | |
▷ Static methods | 187 | 16.11% |
▷ Public methods | 1,007 | 86.74% |
▷ Protected methods | 10 | 0.86% |
▷ Private methods | 144 | 12.40% |
Functions | 181 | |
▷ Named functions | 85 | 46.96% |
▷ Anonymous functions | 96 | 53.04% |
Constants | 81 | |
▷ Global constants | 4 | 4.94% |
▷ Class constants | 77 | 95.06% |
▷ Public constants | 56 | 72.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin