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: ▲0.25MB] [CPU: ▼2.42ms] Passed 4 tests
Analyzing server-side resources used by Gutenberg Blocks and Page Layouts - Attire Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.34 ▼5.73 |
Dashboard /wp-admin | 3.54 ▲0.23 | 43.80 ▼5.75 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 49.42 ▲0.62 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 96.47 ▲1.19 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 41.86 ▲9.87 |
Server storage [IO: ▲6.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
__wpdm_enc_key |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gutenberg Blocks and Page Layouts - Attire Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲274 | 13.57 ▼0.78 | 12.11 ▲10.03 | 42.81 ▼9.88 |
Dashboard /wp-admin | 2,346 ▲169 | 5.61 ▼0.05 | 92.16 ▼2.50 | 41.92 ▼0.64 |
Posts /wp-admin/edit.php | 2,247 ▲147 | 2.00 ▼0.02 | 40.40 ▲4.56 | 35.69 ▼1.28 |
Add New Post /wp-admin/post-new.php | 6,662 ▲5,135 | 35.10 ▲12.30 | 1,111.11 ▲417.30 | 47.21 ▼3.33 |
Media Library /wp-admin/upload.php | 1,550 ▲147 | 4.25 ▲0.10 | 98.26 ▲0.70 | 43.27 ▲1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- __wpdm_enc_key
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Attire\\Blocks\\blocks\\voting\\add_action() in wp-content/plugins/attire-blocks/blocks/dynamic/voting/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Attire\\Blocks\\blocks\\post_carousel\\add_action() in wp-content/plugins/attire-blocks/blocks/dynamic/post-carousel/index.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function Attire\\Blocks\\blocks\\post_grid\\add_action() in wp-content/plugins/attire-blocks/blocks/dynamic/post-grid/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Attire\\Blocks\\blocks\\product_categories\\add_action() in wp-content/plugins/attire-blocks/blocks/dynamic/product-category/index.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: wordpress blocks, page builder, blocks, gutenberg, attire blocks...
attire-blocks/attire-blocks.php 92% from 13 tests
The main PHP script in "Gutenberg Blocks and Page Layouts - Attire Blocks" version 1.9.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin14,992 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 13 | 9,315 |
PHP | 20 | 560 | 455 | 3,699 |
JavaScript | 14 | 159 | 57 | 1,031 |
PO File | 1 | 438 | 630 | 914 |
CSS | 7 | 0 | 10 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.64 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 46 | 51.11% |
▷ Public methods | 86 | 95.56% |
▷ Protected methods | 3 | 3.33% |
▷ Private methods | 1 | 1.11% |
Functions | 66 | |
▷ Named functions | 53 | 80.30% |
▷ Anonymous functions | 13 | 19.70% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/static/images/atbs_icon.png | 1.70KB | 1.71KB | 0.00% |