84% blade

Code Review | Blade

WordPress plugin Blade scored 84% from 54 tests.

About plugin

  • Plugin page: blade
  • Plugin version: 0.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Dec 1, 2015
  • Number of updates: 37
  • Update frequency: every 24.1 days
  • Top authors: konvent (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 5,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.32ms] Passed 4 tests

A check of server-side resources used by Blade
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.80 ▼5.49
Dashboard /wp-admin3.32 ▲0.0145.25 ▼1.60
Posts /wp-admin/edit.php3.43 ▲0.0748.18 ▲3.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.02 ▼15.33
Media Library /wp-admin/upload.php3.24 ▲0.0135.49 ▲1.16

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blade
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.021.65 ▼0.5139.26 ▼8.65
Dashboard /wp-admin2,206 ▲185.83 ▼0.09104.16 ▼8.5540.48 ▼8.77
Posts /wp-admin/edit.php2,089 ▼02.09 ▲0.1239.97 ▼0.7536.00 ▲0.10
Add New Post /wp-admin/post-new.php1,519 ▼1422.97 ▼0.14648.57 ▲1.6257.08 ▲2.02
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.1292.78 ▼12.6640.70 ▼3.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_BLADE_APP_PATH - assumed 'WP_BLADE_APP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/constants.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blade/application/controllers/main-controller.php:30
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_BLADE_CONFIG_PATHconstants.php' (include_path='.:/usr/share/php') in wp-content/plugins/blade/application/config/initialize.php on line 36
    • > PHP Warning
      Use of undefined constant WP_BLADE_ROOT - assumed 'WP_BLADE_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/constants.php on line 41
    • > PHP Warning
      require_once(WP_BLADE_CONFIG_PATHconstants.php): failed to open stream: No such file or directory in wp-content/plugins/blade/application/config/initialize.php on line 36
    • > PHP Warning
      Use of undefined constant WP_BLADE_APP_PATH - assumed 'WP_BLADE_APP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/constants.php on line 35
    • > PHP Warning
      Use of undefined constant WP_BLADE_APP_PATH - assumed 'WP_BLADE_APP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/constants.php on line 25
    • > PHP Warning
      Use of undefined constant WP_BLADE_APP_PATH - assumed 'WP_BLADE_APP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/constants.php on line 30
    • > PHP Warning
      Use of undefined constant WP_BLADE_CONFIG_PATH - assumed 'WP_BLADE_CONFIG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blade/application/config/initialize.php on line 36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: template, blade, engine, laravel

blade/blade.php Passed 13 tests

The entry point to "Blade" version 0.3.7 is a PHP file that has certain tags in its header comment area
122 characters long description:
The Blade template engine developed by Taylor Otwell and used in Laravel. Enables the use of Blade in your template files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin865 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12283948733
Markdown1310108
JSON10024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.29
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods82
▷ Static methods6174.39%
▷ Public methods5465.85%
▷ Protected methods2834.15%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants18
▷ Global constants1688.89%
▷ Class constants211.11%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin