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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.18 | 45.13 ▼2.20 |
Dashboard /wp-admin | 5.80 ▲2.49 | 105.89 ▲57.06 |
Posts /wp-admin/edit.php | 5.86 ▲2.50 | 102.43 ▲52.13 |
Add New Post /wp-admin/post-new.php | 10.24 ▲4.35 | 234.48 ▲141.27 |
Media Library /wp-admin/upload.php | 5.80 ▲2.56 | 92.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲83 | 14.98 ▲0.64 | 1.82 ▲0.00 | 39.33 ▼6.42 |
Dashboard /wp-admin | 2,225 ▲47 | 6.51 ▲0.83 | 105.28 ▼8.63 | 75.82 ▲34.07 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.81 ▲0.87 | 46.44 ▲8.56 | 29.76 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.87 ▲0.58 | 733.63 ▲13.69 | 38.58 ▼17.35 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 5.03 ▲0.78 | 107.18 ▲3.58 | 87.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 1,904 | 2,758 | 5,642 |
PHP | 80 | 450 | 1,084 | 2,824 |
JSON | 29 | 0 | 0 | 1,678 |
Markdown | 3 | 41 | 0 | 109 |
CSS | 37 | 1 | 1 | 39 |
JavaScript | 36 | 0 | 7 | 37 |
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 code | 0.34 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 63 | 88.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.27% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/crosswinds-framework-wordmark-dark.png | 214.00KB | 56.26KB | ▼ 73.71% |
admin/images/cf-wordmark.png | 94.88KB | 93.53KB | ▼ 1.42% |
admin/images/portafoglio-logo-no-background.png | 60.68KB | 14.92KB | ▼ 75.41% |