Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wp-default-feature-image/wpdfi.php+89
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.82MB] [CPU: ▼139.39ms] Passed 4 tests
A check of server-side resources used by WP Default Feature Image
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.81 | 43.87 ▲7.94 |
Dashboard /wp-admin | 3.95 ▲0.89 | 64.31 ▲14.50 |
Posts /wp-admin/edit.php | 4.01 ▲0.88 | 61.13 ▲4.90 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.79 | 102.06 ▼574.30 |
Media Library /wp-admin/upload.php | 3.81 ▲0.81 | 42.80 ▲3.92 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,516 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpdfi-settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Default Feature Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,901 ▲288 | 17.34 ▲1.65 | 10.84 ▼0.19 | 51.62 ▼6.31 |
Dashboard /wp-admin | 3,165 ▲237 | 7.96 ▲2.01 | 165.90 ▲3.97 | 124.13 ▲1.24 |
Posts /wp-admin/edit.php | 2,966 ▲227 | 4.13 ▲1.42 | 88.06 ▲22.58 | 100.87 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,594 ▲13 | 18.79 ▼1.86 | 361.52 ▼40.11 | 121.52 ▲2.78 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 4.77 ▼0.26 | 127.89 ▼44.76 | 128.77 ▼0.49 |
WPDFI /wp-admin/wpdfi-settings.php | 26 | 0.90 | 0.05 | 13.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 13× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-default-feature-image/templates/admin/blocks/tabs/dfis/exist.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/partials/footer.blade.php
- > /wp-content/plugins/wp-default-feature-image/vendor/vietartisans/templater/tests/templates/test-twig-template.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/partials/header.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/blocks/taxonomy/exist.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/notice.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/layout.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/blocks/tabs/options/default.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/blocks/tabs/dfis/default.blade.php
- > /wp-content/plugins/wp-default-feature-image/templates/admin/blocks/taxonomy/default.blade.php
- 483× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Writer\\TranslationWriterInterface' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/translation/Writer/TranslationWriter.php:24
- > PHP Fatal error
Trait 'Symfony\\Component\\Debug\\Tests\\Fixtures\\InternalTrait2' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/debug/Tests/Fixtures/InternalClass.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/wp-default-feature-image/vendor/twig/twig/lib/Twig/Filter/Method.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/debug/Tests/DebugClassLoaderTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-default-feature-image/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/translation/Tests/TranslatorTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/wp-default-feature-image/vendor/twig/twig/lib/Twig/Node/Expression/Unary.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/translation/Tests/Dumper/JsonFileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wp-default-feature-image/vendor/illuminate/support/Facades/Validator.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-default-feature-image/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/wpdfi-settings.php
- > Network (severe)
wp-admin/wpdfi-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tested up to: Invalid plugin version format
wp-default-feature-image/wpdfi.php 85% from 13 tests
The main PHP script in "WP Default Feature Image" version 1.0.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-default-feature-image.php" instead of "wpdfi.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin76,417 lines of code in 1,168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 958 | 10,852 | 24,837 | 44,895 |
JavaScript | 1 | 4,796 | 3,668 | 16,236 |
XSD | 4 | 99 | 76 | 4,991 |
reStructuredText | 89 | 2,414 | 2,131 | 3,371 |
CSS | 1 | 8 | 14 | 2,484 |
JSON | 22 | 0 | 0 | 1,622 |
C | 2 | 224 | 192 | 1,082 |
Markdown | 17 | 209 | 0 | 577 |
XML | 18 | 13 | 0 | 387 |
SVG | 1 | 0 | 0 | 288 |
Blade | 18 | 5 | 24 | 249 |
C/C++ Header | 2 | 19 | 21 | 55 |
YAML | 6 | 9 | 1 | 55 |
m4 | 2 | 13 | 12 | 46 |
PO File | 6 | 7 | 0 | 37 |
HTML | 11 | 0 | 0 | 17 |
Twig | 8 | 6 | 0 | 14 |
Qt Linguist | 1 | 0 | 0 | 10 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 118 | |
Interfaces | 151 | |
Traits | 28 | |
Classes | 753 | |
▷ Abstract classes | 32 | 4.25% |
▷ Concrete classes | 721 | 95.75% |
▷ Final classes | 14 | 1.94% |
Methods | 3,941 | |
▷ Static methods | 295 | 7.49% |
▷ Public methods | 3,356 | 85.16% |
▷ Protected methods | 470 | 11.93% |
▷ Private methods | 115 | 2.92% |
Functions | 332 | |
▷ Named functions | 169 | 50.90% |
▷ Anonymous functions | 163 | 49.10% |
Constants | 128 | |
▷ Global constants | 11 | 8.59% |
▷ Class constants | 117 | 91.41% |
▷ Public constants | 117 | 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 images were found in this plugin