Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.46ms] Passed 4 tests
Analyzing server-side resources used by reGenerate Thumbnails Advanced
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.82 ▲1.12 |
Dashboard /wp-admin | 3.64 ▲0.33 | 51.78 ▲2.18 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.52 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 95.42 ▼3.31 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.28 ▲2.76 |
Regenerate Thumbnails /wp-admin/tools.php?page=rta_generate_thumbnails | 3.84 | 69.07 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_shortpixel_queue |
New WordPress options |
---|
shortqwp_rta |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for reGenerate Thumbnails Advanced
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.41 | 2.02 ▲0.18 | 42.20 ▼1.64 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▼0.03 | 110.30 ▼9.18 | 41.99 ▼3.55 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.02 | 40.26 ▲2.64 | 35.31 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.35 ▲4.96 | 645.60 ▲39.46 | 49.75 ▼2.55 |
Media Library /wp-admin/upload.php | 1,395 ▲16 | 4.16 ▼0.03 | 102.18 ▼2.49 | 46.35 ▲3.75 |
Regenerate Thumbnails /wp-admin/tools.php?page=rta_generate_thumbnails | 1,506 | 2.12 | 30.53 | 43.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- 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)
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function ReThumbAdvanced\\_e() in wp-content/plugins/regenerate-thumbnails-advanced/templates/admin/rta_generate_thumbnails.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ReThumbAdvanced\\_e() in wp-content/plugins/regenerate-thumbnails-advanced/templates/admin/view_rta_regenerate.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function ReThumbAdvanced\\ShortPixelLogger\\wp_enqueue_script() in wp-content/plugins/regenerate-thumbnails-advanced/build/shortpixel/log/src/view-debug-box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function ReThumbAdvanced\\_e() in wp-content/plugins/regenerate-thumbnails-advanced/templates/admin/view_regenerate_process.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function ReThumbAdvanced\\_e() in wp-content/plugins/regenerate-thumbnails-advanced/templates/admin/view_rta_settings.php:8
- > PHP Fatal error
Uncaught Error: Interface 'ReThumbAdvanced\\ShortQ\\DataProvider\\DataProvider' not found in wp-content/plugins/regenerate-thumbnails-advanced/build/shortpixel/shortq/src/DataProvider/MysqlDataProvider.php:10
- > PHP Fatal error
Uncaught Error: Interface 'ReThumbAdvanced\\ShortQ\\Queue\\Queue' not found in wp-content/plugins/regenerate-thumbnails-advanced/build/shortpixel/shortq/src/Queue/WPQ.php:7
- > PHP Fatal error
Uncaught Error: Class 'ReThumbAdvanced\\Controllers\\Controller' not found in wp-content/plugins/regenerate-thumbnails-advanced/classes/Controllers/AdminController.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/regenerate-thumbnails-advanced/templates/admin/view_ad.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
regenerate-thumbnails-advanced/regenerate-thumbnails-advanced.php 92% from 13 tests
The principal PHP file in "reGenerate Thumbnails Advanced" v. 2.4.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,151 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 935 | 492 | 3,758 |
Sass | 4 | 87 | 24 | 627 |
JavaScript | 2 | 142 | 61 | 576 |
CSS | 4 | 6 | 2 | 122 |
JSON | 5 | 1 | 0 | 68 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 30 | 11.63% |
▷ Public methods | 213 | 82.56% |
▷ Protected methods | 27 | 10.47% |
▷ Private methods | 18 | 6.98% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 45 | |
▷ Global constants | 6 | 13.33% |
▷ Class constants | 39 | 86.67% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/robo-winky.png | 3.24KB | 1.89KB | ▼ 41.70% |