Benchmarks
Plugin footprint 48% 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: ▲0.65MB] [CPU: ▲2.79ms] Passed 4 tests
An overview of server-side resources used by ImageRecycle pdf & image compression
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 39.96 ▼3.25 |
Dashboard /wp-admin | 4.00 ▲0.70 | 53.42 ▲5.95 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 56.03 ▲1.90 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 89.67 ▲6.56 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 40.96 ▲10.18 |
Folder tree /wp-admin/admin.php?page=wpir-foldertree | 3.83 | 37.43 |
ImageRecycle /wp-admin/options-general.php?page=option-image-recycle | 3.89 | 41.04 |
ImageRecycle /wp-admin/upload.php?page=wp-image-recycle-page | 3.84 | 42.03 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_wpio_queue |
wp_wpio_images |
wp_wpio_listimages |
New WordPress options |
---|
wpio_ao_lastRun |
widget_recent-comments |
wpio_db_version |
wpio_irfeedback_version |
widget_recent-posts |
wpio_indexation_auto |
wpio_irreview_installation_time |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for ImageRecycle pdf & image compression
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲120 | 14.36 ▼0.35 | 1.65 ▼0.13 | 38.77 ▼6.53 |
Dashboard /wp-admin | 2,287 ▲110 | 5.67 ▲0.03 | 91.35 ▼6.65 | 42.12 ▼1.12 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.05 | 38.56 ▲1.66 | 35.06 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.26 ▲0.45 | 591.92 ▼50.25 | 55.23 ▲7.40 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.24 ▲0.06 | 96.29 ▼6.41 | 41.56 ▼5.92 |
Folder tree /wp-admin/admin.php?page=wpir-foldertree | 783 | 2.01 | 24.30 | 22.73 |
ImageRecycle /wp-admin/options-general.php?page=option-image-recycle | 1,222 | 2.17 | 36.69 | 58.11 |
ImageRecycle /wp-admin/upload.php?page=wp-image-recycle-page | 869 | 2.10 | 27.37 | 32.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wpImageRecycle::uninstall() should not be called statically
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_wpio_images
- wp_wpio_listimages
- wp_wpio_queue
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- wpio_indexation_auto
- wpio_irfeedback_version
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- wpio_db_version
- wpio_ao_lastRun
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/wpio-queue.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/ioa.class.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/wpio-table.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/pages/wpio-dashboard.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/class-image-otimizer.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/wpio-setting.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/wp-image-recycle.php
- > /wp-content/plugins/imagerecycle-pdf-image-compression/class/wpio-helper.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > queue count
0
- > auto_optimize is complete
- > queue count
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6 in imagerecycle-pdf-image-compression/assets to your readme.txt
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
imagerecycle-pdf-image-compression/wp-image-recycle.php 77% from 13 tests
The entry point to "ImageRecycle pdf & image compression" version 3.1.13 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("imagerecycle-pdf-image-compression.php" instead of "wp-image-recycle.php")
- Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 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 plugin6,554 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 620 | 570 | 4,007 |
JavaScript | 10 | 160 | 114 | 1,080 |
CSS | 5 | 166 | 107 | 1,079 |
PO File | 2 | 174 | 158 | 388 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 137)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 61.10 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 137.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 28 | 19.86% |
▷ Public methods | 132 | 93.62% |
▷ Protected methods | 8 | 5.67% |
▷ Private methods | 1 | 0.71% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/jao/file.png | 0.29KB | 0.34KB | 0.00% |
images/jao/linux.png | 0.65KB | 0.65KB | 0.00% |
images/jao/xls.png | 0.65KB | 0.63KB | ▼ 2.41% |
images/jao/html.png | 0.72KB | 0.75KB | 0.00% |
images/jao/drive.png | 0.34KB | 0.57KB | 0.00% |