Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.32ms] Passed 4 tests
A check of server-side resources used by My Templates Thumbnails for Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.78 ▼3.53 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.91 ▼3.16 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.47 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.84 ▼18.08 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.47 ▲3.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
My Templates Thumbnails for Elementor: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲130 | 13.60 ▼0.76 | 8.35 ▲5.91 | 37.82 ▼9.74 |
Dashboard /wp-admin | 2,210 ▲19 | 4.78 ▼0.12 | 109.04 ▲0.43 | 40.22 ▼10.80 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 40.36 ▲0.24 | 35.58 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,518 ▼25 | 17.56 ▼0.47 | 675.15 ▲48.53 | 57.26 ▲5.91 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.03 | 93.75 ▼10.29 | 42.64 ▲1.30 |
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 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-templates-thumbnails-for-elementor/my-templates-thumbnails-for-elementor.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/my-templates-thumbnails-for-elementor/admin/partials/my-templates-thumbnails-for-elementor-new-template.php:7
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: thumbnail, featured image, elementor, library, templates
my-templates-thumbnails-for-elementor/my-templates-thumbnails-for-elementor.php 92% from 13 tests
Analyzing the main PHP file in "My Templates Thumbnails for Elementor" version 1.0.0
Please take the time to fix the following:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected377 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 148 | 530 | 289 |
CSS | 2 | 16 | 4 | 82 |
JavaScript | 3 | 4 | 55 | 6 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 23 | 76.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 23.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/placeholder.png | 6.00KB | 5.03KB | ▼ 16.19% |