84% crosswinds-blocks

Code Review | Crosswinds Blocks

WordPress plugin Crosswinds Blocks scored84%from 54 tests.

About plugin

  • Plugin page: crosswinds-blocks
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 28, 2023
  • Latest release: Nov 20, 2023
  • Number of updates: 10
  • Update frequency: every 2.3 days
  • Top authors: ArenaPigskin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.18MB] [CPU: ▲40.99ms] Passed 4 tests

Analyzing server-side resources used by Crosswinds Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.65 ▲1.1845.13 ▼2.20
Dashboard /wp-admin5.80 ▲2.49105.89 ▲57.06
Posts /wp-admin/edit.php5.86 ▲2.50102.43 ▲52.13
Add New Post /wp-admin/post-new.php10.24 ▲4.35234.48 ▲141.27
Media Library /wp-admin/upload.php5.80 ▲2.5692.07 ▲56.98

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Crosswinds Blocks: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8314.98 ▲0.641.82 ▲0.0039.33 ▼6.42
Dashboard /wp-admin2,225 ▲476.51 ▲0.83105.28 ▼8.6375.82 ▲34.07
Posts /wp-admin/edit.php2,140 ▲402.81 ▲0.8746.44 ▲8.5629.76 ▼3.36
Add New Post /wp-admin/post-new.php1,553 ▲2723.87 ▲0.58733.63 ▲13.6938.58 ▼17.35
Media Library /wp-admin/upload.php1,436 ▲395.03 ▲0.78107.18 ▲3.5887.33 ▲41.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: block in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 16
    • > PHP Notice
      Trying to get property 'attributes' of non-object in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 15
    • > PHP Notice
      Trying to get property 'attributes' of non-object in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 15
    • > PHP Notice
      Undefined variable: block in wp-content/plugins/crosswinds-blocks/blocks/build/single-content/template.php on line 15

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

crosswinds-blocks/crosswinds-blocks.php Passed 13 tests

The primary PHP file in "Crosswinds Blocks" version 1.0.2 is used by WordPress to initiate all plugin functionality
70 characters long description:
Take your website to the next level with the Crosswinds Blocks plugin!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,329 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PO File71,9042,7585,642
PHP804501,0842,824
JSON29001,678
Markdown3410109
CSS371139
JavaScript360737

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.91
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods71
▷ Static methods22.82%
▷ Public methods6388.73%
▷ Protected methods00.00%
▷ Private methods811.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.36MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/crosswinds-framework-wordmark-dark.png214.00KB56.26KB▼ 73.71%
admin/images/cf-wordmark.png94.88KB93.53KB▼ 1.42%
admin/images/portafoglio-logo-no-background.png60.68KB14.92KB▼ 75.41%