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.03MB] [CPU: ▼10.92ms] Passed 4 tests
This is a short check of server-side resources used by Thai Fonts for Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 26.65 ▼18.11 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.22 ▼1.12 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.48 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.35 ▼19.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.71 ▼5.08 |
Server storage [IO: ▲8.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Thai Fonts for Elementor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.69 ▼0.51 | 1.85 ▼0.19 | 43.31 ▼0.75 |
Dashboard /wp-admin | 2,232 ▲47 | 5.84 ▼0.02 | 106.23 ▼13.24 | 39.59 ▼6.24 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.05 ▲0.08 | 39.63 ▲2.78 | 34.98 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,534 ▲12 | 23.20 ▼0.31 | 665.96 ▼12.50 | 52.63 ▼0.64 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.23 ▲0.07 | 103.43 ▼28.41 | 46.09 ▼15.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Addtional_Thai_Fonts' not found in wp-content/plugins/thai-fonts-for-elementor/core/views/tfe-admin-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Install and see fonts live in Elementor!)
thai-fonts-for-elementor/thai-fonts-for-elementor.php Passed 13 tests
"Thai Fonts for Elementor" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
121 characters long description:
A simple plugin that dynamically enqueue selected Thai language fonts, and make them available in the Elementor\'s Editor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin686 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 16 | 47 | 500 |
PHP | 7 | 102 | 263 | 186 |
JavaScript | 1 | 0 | 3 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin