Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.71ms] Passed 4 tests
Server-side resources used by Blocksolid Snippets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.50 ▲0.55 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.11 ▼6.09 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.31 ▲4.11 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.98 ▲4.55 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.89 ▲4.27 |
Snippets /wp-admin/edit.php?post_type=snippet | 3.35 | 34.52 |
Add New /wp-admin/post-new.php?post_type=snippet | 6.09 | 79.91 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Blocksolid Snippets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.40 ▼0.02 | 1.65 ▲0.13 | 39.94 ▲1.72 |
Dashboard /wp-admin | 2,244 ▲64 | 5.66 ▲0.00 | 123.57 ▲37.92 | 41.90 ▲1.03 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.04 ▲0.03 | 40.10 ▲3.45 | 35.07 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6,390 ▲4,864 | 28.08 ▲4.53 | 825.36 ▲145.02 | 53.69 ▼12.31 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.24 ▲0.03 | 94.99 ▼5.40 | 41.34 ▼2.99 |
Snippets /wp-admin/edit.php?post_type=snippet | 1,133 | 1.98 | 31.80 | 30.43 |
Add New /wp-admin/post-new.php?post_type=snippet | 6,229 | 22.67 | 877.60 | 32.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocksolid-snippets/blocksolid-snippets.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=snippet
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "blocksolid-snippets-admin-styles-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#blocksolid-snippets-admin-styles-css
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: snippets, repeated, custom post type, reusable, gutenberg...
blocksolid-snippets/blocksolid-snippets.php Passed 13 tests
Analyzing the main PHP file in "Blocksolid Snippets" version 1.0.9
120 characters long description:
Snippets of code are contained in a custom post type that can then be called via a Gutenberg block or a simple shortcode
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
No dangerous file extensions were detected364 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 24 | 154 |
JavaScript | 1 | 16 | 46 | 151 |
CSS | 1 | 11 | 0 | 53 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin