Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.06MB] [CPU: ▲8.31ms] 75% from 4 tests
Server-side resources used by Real Thumbnail Generator: Efficient regeneration of thumbnails in all sizes
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 528.68ms on /wp-admin/admin.php?page=real-thumbnail-generator-lite-welcome)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.50 ▲2.04 | 50.86 ▲7.31 |
Dashboard /wp-admin | 5.38 ▲2.03 | 66.46 ▼2.70 |
Posts /wp-admin/edit.php | 5.43 ▲2.07 | 69.29 ▲19.30 |
Add New Post /wp-admin/post-new.php | 8.05 ▲2.16 | 101.20 ▲9.34 |
Media Library /wp-admin/upload.php | 5.31 ▲2.09 | 64.37 ▲33.66 |
Real Thumbnail Generator (Free) /wp-admin/admin.php?page=real-thumbnail-generator-lite-welcome | 5.56 | 528.68 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 213 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_rtg_attachments |
New WordPress options |
---|
rpm-wpc-announcements-active_real-thumbnail-generator-lite |
widget_theysaidso_widget |
can_compress_scripts |
rtg_liteDismissed-expire |
rpm-wpc-licenseDeferredLicenseActivation_real-thumbnail-generator-lite-expire |
theysaidso_admin_options |
widget_recent-posts |
rtg_db_migration |
widget_recent-comments |
rpm-wpc-puFirst_real-thumbnail-generator-lite |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Real Thumbnail Generator: Efficient regeneration of thumbnails in all sizes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲139 | 17.82 ▲3.44 | 1.76 ▲0.02 | 36.36 ▼8.56 |
Dashboard /wp-admin | 2,280 ▲103 | 7.95 ▲2.38 | 200.75 ▲101.69 | 42.55 ▼1.34 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 5.79 ▲3.78 | 134.35 ▲97.44 | 35.23 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,602 ▲66 | 26.92 ▲3.74 | 806.50 ▲173.09 | 37.68 ▼16.57 |
Media Library /wp-admin/upload.php | 1,546 ▲143 | 7.58 ▲3.40 | 180.16 ▲84.26 | 41.72 ▼0.22 |
Real Thumbnail Generator (Free) /wp-admin/admin.php?page=real-thumbnail-generator-lite-welcome | 1,625 | 5.85 | 140.79 | 113.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Zombie tables were found after uninstall: 1 table
- wp_rtg_attachments
- The uninstall procedure has failed, leaving 14 options in the database
- can_compress_scripts
- rtg_db_migration
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- rtg_liteDismissed
- rpm-wpc-puFirst_real-thumbnail-generator-lite
- rpm-wpc-announcements-active_real-thumbnail-generator-lite
- rpm-wpc-licenseDeferredLicenseActivation_real-thumbnail-generator-lite-expire
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 101× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/real-thumbnail-generator-lite/inc/attachment/Regenerate.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/real-utils/src/cross/CrossSellingHandler.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/utils/src/KeyValueMapOption.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/utils/src/Activator.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/utils/src/PackageLocalization.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/utils/src/Service.php
- > /wp-content/plugins/real-thumbnail-generator-lite/inc/editor/impl/BFIImagick_1_3.php
- > /wp-content/plugins/real-thumbnail-generator-lite/vendor/devowl-wp/utils/src/Base.php
- > /wp-content/plugins/real-thumbnail-generator-lite/inc/view/View.php
- > /wp-content/plugins/real-thumbnail-generator-lite/inc/rest/Analyse.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function PHPSTORM_META\\expectedArguments() in wp-content/plugins/real-thumbnail-generator-lite/vendor/colinodell/json5/.phpstorm.meta.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: post thumbnails, image regenerate, regenerate images, regenerate thumbnails, thumbnails...
real-thumbnail-generator-lite/index.php 85% from 13 tests
The principal PHP file in "Real Thumbnail Generator: Efficient regeneration of thumbnails in all sizes" v. 2.6.66 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 ("real-thumbnail-generator-lite.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected17,015 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 125 | 329 | 6,196 | 8,643 |
Markdown | 11 | 3,525 | 0 | 6,694 |
JSON | 6 | 0 | 0 | 1,651 |
JavaScript | 13 | 2 | 23 | 14 |
CSS | 6 | 0 | 0 | 12 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 4 | |
Traits | 20 | |
Classes | 80 | |
▷ Abstract classes | 5 | 6.25% |
▷ Concrete classes | 75 | 93.75% |
▷ Final classes | 3 | 4.00% |
Methods | 702 | |
▷ Static methods | 100 | 14.25% |
▷ Public methods | 604 | 86.04% |
▷ Protected methods | 41 | 5.84% |
▷ Private methods | 57 | 8.12% |
Functions | 34 | |
▷ Named functions | 6 | 17.65% |
▷ Anonymous functions | 28 | 82.35% |
Constants | 155 | |
▷ Global constants | 32 | 20.65% |
▷ Class constants | 123 | 79.35% |
▷ Public constants | 123 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected