84% wp-blade-engine

Code Review | Blade Engine

WordPress plugin Blade Engine scored84%from 54 tests.

About plugin

  • Plugin page: wp-blade-engine
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2017
  • Latest release: Aug 6, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Lars- (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,256 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6341.14 ▲0.51
Dashboard /wp-admin3.93 ▲0.6349.06 ▲7.51
Posts /wp-admin/edit.php3.98 ▲0.6351.58 ▲4.42
Add New Post /wp-admin/post-new.php6.51 ▲0.6387.17 ▼5.77
Media Library /wp-admin/upload.php3.85 ▲0.6339.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.34 ▼0.911.79 ▲0.0541.53 ▼0.13
Dashboard /wp-admin2,209 ▲185.85 ▼0.0695.54 ▼7.5840.29 ▼4.17
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0233.57 ▼0.2235.26 ▼1.96
Add New Post /wp-admin/post-new.php1,528 ▼618.27 ▼4.87625.17 ▼38.8552.76 ▼2.28
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0494.56 ▼10.2540.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3054,01012,33415,285
JSON13001,039
Markdown8870285
C1528223
XML36072
m41111141
C/C++ Header112840
Bourne Shell1203

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 code0.34
Average class complexity5.65
▷ Minimum class complexity1.00
▷ Maximum class complexity132.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces64
Interfaces82
Traits22
Classes185
▷ Abstract classes115.95%
▷ Concrete classes17494.05%
▷ Final classes00.00%
Methods1,630
▷ Static methods16910.37%
▷ Public methods1,35883.31%
▷ Protected methods25415.58%
▷ Private methods181.10%
Functions216
▷ Named functions7936.57%
▷ Anonymous functions13763.43%
Constants37
▷ Global constants410.81%
▷ Class constants3389.19%
▷ Public constants33100.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