84% my-templates-thumbnails-for-elementor

Code Review | My Templates Thumbnails for Elementor

WordPress plugin My Templates Thumbnails for Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: my-templates-thum...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Dec 31, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: heinperu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 718 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.78 ▼3.53
Dashboard /wp-admin3.36 ▲0.0645.91 ▼3.16
Posts /wp-admin/edit.php3.48 ▲0.1248.47 ▲4.12
Add New Post /wp-admin/post-new.php5.96 ▲0.0881.84 ▼18.08
Media Library /wp-admin/upload.php3.29 ▲0.0637.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲13013.60 ▼0.768.35 ▲5.9137.82 ▼9.74
Dashboard /wp-admin2,210 ▲194.78 ▼0.12109.04 ▲0.4340.22 ▼10.80
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0140.36 ▲0.2435.58 ▲0.02
Add New Post /wp-admin/post-new.php1,518 ▼2517.56 ▼0.47675.15 ▲48.5357.26 ▲5.91
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0393.75 ▼10.2942.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP15148530289
CSS216482
JavaScript34556

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 code0.18
Average class complexity1.44
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2376.67%
▷ Protected methods00.00%
▷ Private methods723.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/placeholder.png6.00KB5.03KB▼ 16.19%