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.02MB] [CPU: ▼5.92ms] Passed 4 tests
A check of server-side resources used by My Snippets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 34.57 ▼5.25 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.14 ▼1.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.64 ▼9.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.48 ▼7.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.68 ▲2.87 |
Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_snippet |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Snippets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.16 ▼1.12 | 1.66 ▼0.10 | 38.30 ▼2.19 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.03 | 112.98 ▲10.30 | 42.90 ▼4.00 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 35.83 ▼1.96 | 30.19 ▼3.07 |
Add New Post /wp-admin/post-new.php | 6,471 ▲4,934 | 20.24 ▼2.91 | 862.36 ▲193.23 | 59.93 ▲8.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.03 | 100.55 ▼1.33 | 43.37 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_snippet
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function MySnippets\\add_action() in wp-content/plugins/my-snippets/src/bootstrap-plugin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function MySnippets\\add_action() in wp-content/plugins/my-snippets/src/bootstrap-plugin.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/my-snippets/src/Widgets/Snippet.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (My Snippets meta box on the edit post screen.), #2 (My Snippets widget on the widgets screen.)
my-snippets/my-snippets.php Passed 13 tests
The main file in "My Snippets" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Add custom widget content on a per-post basis from the edit post screen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin163 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 58 | 142 | 141 |
Markdown | 1 | 16 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 2.89KB | 2.83KB | ▼ 1.86% |
screenshot-2.png | 5.16KB | 5.09KB | ▼ 1.36% |