68% blaze-css

Code Review | Blaze CSS

WordPress plugin Blaze CSS scored68%from 54 tests.

About plugin

  • Plugin page: blaze-css
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Mar 19, 2021
  • Latest release: Sep 28, 2021
  • Number of updates: 15
  • Update frequency: every 12.9 days
  • Top authors: mottodesignstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /776 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼2.26ms] Passed 4 tests

An overview of server-side resources used by Blaze CSS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6339.70 ▼3.72
Dashboard /wp-admin3.95 ▲0.6450.47 ▼5.17
Posts /wp-admin/edit.php4.06 ▲0.7154.37 ▲7.29
Add New Post /wp-admin/post-new.php6.55 ▲0.6685.82 ▼3.41
Media Library /wp-admin/upload.php3.87 ▲0.6440.75 ▲3.27
Blaze /wp-admin/options-general.php?page=blaze-settings3.8435.85

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,565 new files
Database: 2 new tables, 8 new options
New tables
wp_blaze_logs
wp_blaze_elements
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
blaze_db_version
blaze_plugin_options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Blaze CSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.46 ▲0.061.94 ▲0.0741.49 ▼8.56
Dashboard /wp-admin2,215 ▲274.87 ▼1.06103.83 ▼15.4339.44 ▼4.21
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0235.87 ▼0.8432.06 ▼4.24
Add New Post /wp-admin/post-new.php1,540 ▲2623.54 ▲6.08685.02 ▲2.6352.48 ▼6.32
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.02104.76 ▲6.3242.96 ▼3.54
Blaze /wp-admin/options-general.php?page=blaze-settings8592.0428.5429.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_blaze_elements
    • wp_blaze_logs
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • blaze_plugin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • blaze_db_version
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blaze-css/vendor/nikic/php-parser/grammar/rebuildParsers.php
    • > /wp-content/plugins/blaze-css/templates/sections/generate_csv_settings.php
    • > /wp-content/plugins/blaze-css/templates/sections/general_settings.php
    • > /wp-content/plugins/blaze-css/vendor/sabberworm/php-css-parser/tests/quickdump.php
  • 864× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PharIo\\Manifest\\ManifestElement' not found in wp-content/plugins/blaze-css/vendor/phar-io/manifest/src/xml/RequiresElement.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\MockObject\\Rule\\InvocationOrder' not found in wp-content/plugins/blaze-css/vendor/phpunit/phpunit/src/Framework/MockObject/Rule/InvokedAtLeastCount.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/blaze-css/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/blaze-css/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PharIo\\Manifest\\ManifestElement' not found in wp-content/plugins/blaze-css/vendor/phar-io/manifest/src/xml/ExtensionElement.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/blaze-css/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/blaze-css/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\Exception' not found in wp-content/plugins/blaze-css/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotAcceptParameterTypeException.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/blaze-css/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\odeAbstract' not found in wp-content/plugins/blaze-css/vendor/nikic/php-parser/lib/PhpParser/Node/Expr.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
7 plugin tags: tailwind, lighthouse, css optimization, pagespeed, purifycss...

blaze-css/blaze-css.php 92% from 13 tests

"Blaze CSS" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time 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

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected89,955 lines of code in 1,460 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,25616,39831,83277,121
Markdown681,98104,189
JSON421504,186
yacc3316121,949
XSD300962
YAML161507790
CSS467322415
XML14112200
JavaScript81215110
reStructuredText2231831
SVG2002

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 144)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.27
▷ Minimum class complexity1.00
▷ Maximum class complexity227.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity144.00
Code structure
Namespaces136
Interfaces102
Traits7
Classes1,120
▷ Abstract classes565.00%
▷ Concrete classes1,06495.00%
▷ Final classes49746.71%
Methods5,753
▷ Static methods77713.51%
▷ Public methods4,60780.08%
▷ Protected methods5409.39%
▷ Private methods60610.53%
Functions1,484
▷ Named functions25016.85%
▷ Anonymous functions1,23483.15%
Constants558
▷ Global constants61.08%
▷ Class constants55298.92%
▷ Public constants50290.94%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png46.61KB20.07KB▼ 56.93%
assets/icon-256x256.png8.91KB4.61KB▼ 48.25%