Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.25ms] Passed 4 tests
A check of server-side resources used by Code Snippets in Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.09 ▼1.98 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.47 ▼4.94 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 43.58 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.42 ▼9.16 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.07 ▼0.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Code Snippets in Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.34 | 1.69 ▼0.06 | 45.89 ▲1.66 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▲0.00 | 109.23 ▲3.98 | 38.50 ▼7.13 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.05 ▲0.04 | 41.72 ▲7.46 | 36.66 ▲4.66 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.26 ▲0.17 | 665.48 ▲9.34 | 54.41 ▼7.71 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.12 | 102.82 ▲0.72 | 47.50 ▲1.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: code highlighting, code syntax, syntax highlight, comments, code
code-snippets-in-comments/code-snippets-in-comments.php Passed 13 tests
The principal PHP file in "Code Snippets in Comments" v. 0.9 is loaded by WordPress automatically on each request
57 characters long description:
This plugin let you reply with code snippets more easily.
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
Good job! No executable or dangerous file extensions detected1,201 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 121 | 0 | 553 |
PHP | 2 | 178 | 81 | 324 |
CSS | 1 | 44 | 12 | 231 |
JavaScript | 3 | 32 | 2 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 27 | |
▷ Static methods | 20 | 74.07% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
There are no PNG files in this plugin