Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.47ms] Passed 4 tests
This is a short check of server-side resources used by Fabrica Synced Pattern Instances
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.81 ▲0.51 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.62 ▼3.32 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.79 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.38 ▼0.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 35.47 ▲1.08 |
Add New /wp-admin/post-new.php?post_type=wp_block | 5.98 | 79.73 |
All Patterns /wp-admin/edit.php?post_type=wp_block | 3.37 | 34.39 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Fabrica Synced Pattern Instances: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.51 ▲0.16 | 1.87 ▼0.02 | 45.43 ▲0.55 |
Dashboard /wp-admin | 2,226 ▲52 | 5.50 ▼0.08 | 81.28 ▼5.17 | 38.80 ▼2.88 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.02 ▲0.03 | 39.88 ▲1.02 | 40.64 ▲8.81 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 18.46 ▼4.84 | 607.42 ▼44.78 | 63.76 ▲9.43 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.23 ▼0.03 | 93.50 ▼8.12 | 42.07 ▼3.63 |
Add New /wp-admin/post-new.php?post_type=wp_block | 1,555 | 16.95 | 870.88 | 37.58 |
All Patterns /wp-admin/edit.php?post_type=wp_block | 1,224 | 6.63 | 72.55 | 31.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3 in fabrica-reusable-block-instances/assets to your readme.txt
fabrica-reusable-block-instances/fabrica-reusable-block-instances.php Passed 13 tests
This is the main PHP file of "Fabrica Synced Pattern Instances" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Shows you how many times, and where, a Synced Pattern has been used.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin286 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 25 | 210 |
JavaScript | 1 | 10 | 3 | 55 |
CSS | 1 | 5 | 1 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.34MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 156.77KB | 169.25KB | 0.00% |
assets/screenshot-3.png | 260.40KB | 69.76KB | ▼ 73.21% |
assets/screenshot-2.png | 198.24KB | 57.64KB | ▼ 70.93% |
assets/icon-128x128.png | 9.35KB | 3.85KB | ▼ 58.78% |
assets/icon-256x256.png | 21.18KB | 6.98KB | ▼ 67.05% |