Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲6.33ms] Passed 4 tests
An overview of server-side resources used by Perfect Images (Manage Image Sizes, Thumbnails, Replace, Retina)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 45.35 ▲10.53 |
Dashboard /wp-admin | 4.00 ▲0.66 | 60.41 ▲1.79 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 59.36 ▲9.77 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.71 | 96.77 ▲3.22 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 49.73 ▲17.04 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 4.10 | 62.00 |
Perfect Images 0 /wp-admin/upload.php?page=wr2x_dashboard | 3.89 | 39.21 |
Perfect Images /wp-admin/admin.php?page=wr2x_settings | 3.89 | 39.60 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
wr2x_options |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Perfect Images (Manage Image Sizes, Thumbnails, Replace, Retina)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲123 | 14.16 ▼0.19 | 1.66 ▲0.14 | 40.56 ▲2.10 |
Dashboard /wp-admin | 2,278 ▲100 | 6.20 ▲0.44 | 127.04 ▲13.06 | 42.61 ▼0.26 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 3.09 ▲1.07 | 56.56 ▲17.10 | 32.92 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,593 ▲64 | 23.79 ▲0.56 | 688.53 ▲31.13 | 35.67 ▼15.14 |
Media Library /wp-admin/upload.php | 1,484 ▲84 | 5.41 ▲1.25 | 108.48 ▲12.36 | 42.43 ▲2.21 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,670 | 4.47 | 118.13 | 75.13 |
Perfect Images 0 /wp-admin/upload.php?page=wr2x_dashboard | 1,180 | 4.88 | 136.45 | 46.64 |
Perfect Images /wp-admin/admin.php?page=wr2x_settings | 1,310 | 4.36 | 109.78 | 38.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- wr2x_options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/wp-retina-2x/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Pipes\\PipesInterface' not found in wp-content/plugins/wp-retina-2x/vendor/symfony/process/Pipes/AbstractPipes.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ImageOptimizer\\WrapperOptimizer' not found in wp-content/plugins/wp-retina-2x/vendor/ps/image-optimizer/src/ImageOptimizer/ChangedOutputOptimizer.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-retina-2x/vendor/symfony/options-resolver/Exception/AccessException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-retina-2x/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-retina-2x/vendor/symfony/process/Exception/RuntimeException.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-retina-2x/classes/core.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Pipes\\AbstractPipes' not found in wp-content/plugins/wp-retina-2x/vendor/symfony/process/Pipes/WindowsPipes.php:27
- > PHP Fatal error
Uncaught Error: Interface 'ImageOptimizer\\Optimizer' not found in wp-content/plugins/wp-retina-2x/vendor/ps/image-optimizer/src/ImageOptimizer/CommandOptimizer.php:7
- > PHP Warning
Use of undefined constant WR2X_PATH - assumed 'WR2X_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-retina-2x/classes/optimize.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: high-dpi, replace, retina, regenerate, thumbnail...
wp-retina-2x/wp-retina-2x.php 92% from 13 tests
Analyzing the main PHP file in "Perfect Images (Manage Image Sizes, Thumbnails, Replace, Retina)" version 6.4.9
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected12,269 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,921 | 3,343 | 9,735 |
PO File | 5 | 388 | 757 | 1,127 |
JSON | 9 | 0 | 0 | 805 |
Markdown | 13 | 157 | 0 | 474 |
JavaScript | 8 | 11 | 17 | 103 |
YAML | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
This is a short overview 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.44 |
Average class complexity | 20.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 359.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 10 | |
Traits | 2 | |
Classes | 74 | |
▷ Abstract classes | 3 | 4.05% |
▷ Concrete classes | 71 | 95.95% |
▷ Final classes | 6 | 8.45% |
Methods | 631 | |
▷ Static methods | 55 | 8.72% |
▷ Public methods | 577 | 91.44% |
▷ Protected methods | 23 | 3.65% |
▷ Private methods | 31 | 4.91% |
Functions | 57 | |
▷ Named functions | 26 | 45.61% |
▷ Anonymous functions | 31 | 54.39% |
Constants | 76 | |
▷ Global constants | 37 | 48.68% |
▷ Class constants | 39 | 51.32% |
▷ Public constants | 38 | 97.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected