Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.87MB] [CPU: ▼62.85ms] Passed 4 tests
Server-side resources used by Theme YAML - Use YAML instead JSON for your theme.json settings and styles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.15 ▼38.01 |
Dashboard /wp-admin | 2.14 ▼1.20 | 8.06 ▼74.32 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 6.17 ▼43.31 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 5.81 ▼95.74 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 7.29 ▼26.69 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Theme YAML - Use YAML instead JSON for your theme.json settings and styles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.66 ▼0.65 | 1.72 ▼0.25 | 38.56 ▼4.44 |
Dashboard /wp-admin | 2,205 ▲17 | 5.82 ▼0.03 | 98.54 ▼20.27 | 70.48 ▲27.88 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.96 ▼0.04 | 39.88 ▲4.83 | 35.56 ▲3.06 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 22.81 ▲5.25 | 644.72 ▲2.93 | 65.32 ▼3.24 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▲0.07 | 97.22 ▼3.72 | 46.94 ▲3.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User error in wp-content/plugins/theme-yaml/lib/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/theme-yaml/lib/symfony/yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/theme-yaml/lib/composer/platform_check.php on line 24
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16. in wp-content/plugins/theme-yaml/lib/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/theme-yaml/lib/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/theme-yaml/lib/symfony/yaml/Command/LintCommand.php:35
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/theme-yaml/lib/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
5 plugin tags: themejson, theme, settings, yaml, styles
theme-yaml/theme-yaml.php 92% from 13 tests
This is the main PHP file of "Theme YAML - Use YAML instead JSON for your theme.json settings and styles" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 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 plugin3,646 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 734 | 1,170 | 3,082 |
JSON | 4 | 0 | 0 | 357 |
Markdown | 5 | 86 | 0 | 207 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 42.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 6.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 2 | 11.76% |
Methods | 139 | |
▷ Static methods | 57 | 41.01% |
▷ Public methods | 85 | 61.15% |
▷ Protected methods | 2 | 1.44% |
▷ Private methods | 52 | 37.41% |
Functions | 33 | |
▷ Named functions | 25 | 75.76% |
▷ Anonymous functions | 8 | 24.24% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 18 | 90.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin