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.04MB] [CPU: ▼4.46ms] Passed 4 tests
A check of server-side resources used by Snippets SE
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.44 ▼1.20 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.08 ▼6.40 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.84 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.66 ▼11.40 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.59 ▲3.16 |
All Snippets /wp-admin/edit.php?post_type=snippet | 3.32 | 34.15 |
Collections /wp-admin/edit-tags.php?taxonomy=sse-collection&post_type=snippet | 3.27 | 33.40 |
Add New /wp-admin/post-new.php?post_type=snippet | 3.39 | 48.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Snippets SE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.31 ▼1.06 | 1.58 ▼0.15 | 40.50 ▼0.45 |
Dashboard /wp-admin | 2,234 ▲43 | 5.83 ▲0.87 | 112.04 ▲4.88 | 41.00 ▲0.22 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.02 ▲0.02 | 41.01 ▲2.62 | 34.05 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,540 ▲17 | 17.49 ▼5.77 | 680.73 ▼10.75 | 56.88 ▼2.19 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.12 ▼0.06 | 110.91 ▲10.41 | 46.53 ▲0.06 |
All Snippets /wp-admin/edit.php?post_type=snippet | 1,108 | 1.93 | 31.27 | 30.78 |
Collections /wp-admin/edit-tags.php?taxonomy=sse-collection&post_type=snippet | 1,290 | 2.13 | 26.23 | 27.28 |
Add New /wp-admin/post-new.php?post_type=snippet | 2,255 | 7.64 | 169.85 | 60.89 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snippets-se/lib/snippets_cpt.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snippets-se/lib/snippets_cpt.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
snippets-se/snippets-se.php 92% from 13 tests
The main PHP file in "Snippets SE" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected130 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 21 | 119 |
Markdown | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin