Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.80ms] Passed 4 tests
Server-side resources used by Snippets Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.64 ▲6.70 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.49 ▼9.10 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.26 ▼8.07 |
Add New Post /wp-admin/post-new.php | 7.25 ▲1.37 | 102.54 ▼7.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.41 ▼2.81 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Snippets Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 14.66 ▲0.28 | 18.39 ▲16.65 | 44.76 ▲0.42 |
Dashboard /wp-admin | 2,203 ▲12 | 5.85 ▼0.02 | 106.07 ▲2.28 | 44.17 ▲3.00 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.06 | 37.68 ▼5.88 | 33.88 ▼5.81 |
Add New Post /wp-admin/post-new.php | 6,184 ▲4,665 | 20.57 ▼2.48 | 882.77 ▲211.35 | 36.43 ▼20.76 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.16 ▼0.13 | 98.83 ▼13.09 | 43.05 ▼7.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'SentidoWeb\Blocks\Uninstaller' not found
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (/snippets-block/assets/step1.png), #2 (/snippets-block/assets/step2.png), #3 (/snippets-block/assets/step3.png), #4 (/snippets-block/assets/step4.png)
snippets-block/index.php 85% from 13 tests
The principal PHP file in "Snippets Block" v. 1.3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("snippets-block.php" instead of "index.php")
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 plugin22,677 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 744 | 793 | 15,125 |
CSS | 108 | 1,320 | 863 | 7,081 |
PHP | 6 | 54 | 188 | 164 |
Markdown | 3 | 44 | 0 | 90 |
JSON | 5 | 0 | 0 | 88 |
PO File | 1 | 22 | 24 | 58 |
XML | 1 | 16 | 22 | 55 |
make | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
node_modules/highlightjs/styles/school_book.png | 0.47KB | 0.34KB | ▼ 27.37% |
node_modules/highlightjs/styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |
node_modules/highlightjs/styles/brown_papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
node_modules/highlightjs/styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |