Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.54ms] Passed 4 tests
Analyzing server-side resources used by Post Snippet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.50 ▼0.96 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.40 ▲1.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.06 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.99 ▼12.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.71 ▲5.68 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_post_snippet_widget |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Post Snippet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.53 ▼1.28 | 6.14 ▲4.34 | 43.14 ▲0.34 |
Dashboard /wp-admin | 2,208 ▲20 | 4.82 ▼0.10 | 110.77 ▼3.15 | 43.54 ▼0.29 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.06 ▲0.01 | 33.97 ▼2.29 | 31.74 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.19 ▲5.52 | 631.94 ▲7.58 | 55.15 ▲2.83 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.31 ▲0.11 | 96.40 ▼3.10 | 42.04 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_post_snippet_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/post-snippet/post-snippet.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/post-snippet/views/narrow.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/post-snippet/views/wide.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
post-snippet/post-snippet.php 92% from 13 tests
The main PHP file in "Post Snippet" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin957 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 74 | 555 |
CSS | 2 | 25 | 5 | 248 |
JavaScript | 2 | 24 | 14 | 154 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 7.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 50.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin