Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.63MB] [CPU: ▲1.19ms] Passed 4 tests
Analyzing server-side resources used by Blade Engine
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 41.14 ▲0.51 |
Dashboard /wp-admin | 3.93 ▲0.63 | 49.06 ▲7.51 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 51.58 ▲4.42 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 87.17 ▼5.77 |
Media Library /wp-admin/upload.php | 3.85 ▲0.63 | 39.92 ▲5.59 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 2 files (0.00KB) illegally modified outside of "wp-content/plugins/wp-blade-engine/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/views/.empty
- (new file) wp-content/cache/blade/.empty
Filesystem: 365 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Blade Engine
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.34 ▼0.91 | 1.79 ▲0.05 | 41.53 ▼0.13 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▼0.06 | 95.54 ▼7.58 | 40.29 ▼4.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 33.57 ▼0.22 | 35.26 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 18.27 ▼4.87 | 625.17 ▼38.85 | 52.76 ▼2.28 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.04 | 94.56 ▼10.25 | 40.89 ▼2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 132× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/wp-blade-engine/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php:19
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/Facades/Redirect.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Queue\\ShouldQueue' not found in wp-content/plugins/wp-blade-engine/vendor/illuminate/events/CallQueuedListener.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/wp-blade-engine/vendor/symfony/finder/Iterator/PathFilterIterator.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/wp-blade-engine/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Queue\\QueueManager' not found in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/Testing/Fakes/QueueFake.php:9
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/Facades/Crypt.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-blade-engine/vendor/symfony/debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-blade-engine/vendor/symfony/finder/Tests/Comparator/NumberComparatorTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wp-blade-engine/vendor/illuminate/support/Facades/Storage.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: laravel, blade render engine, render, engine, blade
wp-blade-engine/wp-blade-engine.php Passed 13 tests
"Blade Engine" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Adds a Blade render engine to use in your theme
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin16,988 lines of code in 333 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 305 | 4,010 | 12,334 | 15,285 |
JSON | 13 | 0 | 0 | 1,039 |
Markdown | 8 | 87 | 0 | 285 |
C | 1 | 52 | 8 | 223 |
XML | 3 | 6 | 0 | 72 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 82 | |
Traits | 22 | |
Classes | 185 | |
▷ Abstract classes | 11 | 5.95% |
▷ Concrete classes | 174 | 94.05% |
▷ Final classes | 0 | 0.00% |
Methods | 1,630 | |
▷ Static methods | 169 | 10.37% |
▷ Public methods | 1,358 | 83.31% |
▷ Protected methods | 254 | 15.58% |
▷ Private methods | 18 | 1.10% |
Functions | 216 | |
▷ Named functions | 79 | 36.57% |
▷ Anonymous functions | 137 | 63.43% |
Constants | 37 | |
▷ Global constants | 4 | 10.81% |
▷ Class constants | 33 | 89.19% |
▷ Public constants | 33 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin