Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.28MB] [CPU: ▼21.67ms] Passed 4 tests
A check of server-side resources used by Star Snippets - Rich Snippet Vote
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.24 ▼6.08 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.69 ▼15.30 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.82 ▲1.51 |
Add New Post /wp-admin/post-new.php | 4.66 ▼1.23 | 42.85 ▼66.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.62 ▲4.98 |
Star Snippets /wp-admin/options-general.php?page=star-snippets-plugin-options | 3.26 | 33.85 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Star Snippets - Rich Snippet Vote
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.48 ▼0.17 | 2.07 ▲0.30 | 42.39 ▲0.66 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▼0.04 | 98.08 ▼0.24 | 38.84 ▼4.21 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▼0.01 | 33.35 ▼8.09 | 35.39 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.52 ▼5.75 | 690.41 ▲87.80 | 53.20 ▼1.95 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.05 | 98.02 ▼1.39 | 45.79 ▲4.52 |
Star Snippets /wp-admin/options-general.php?page=star-snippets-plugin-options | 1,052 | 2.02 | 21.92 | 27.18 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/star-snippets-rich-snippet-vote/star_snippets.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== star-snippets-rich-snippet-vote ===
)
star-snippets-rich-snippet-vote/star_snippets.php 85% from 13 tests
"Star Snippets - Rich Snippet Vote" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("star-snippets-rich-snippet-vote.php" instead of "star_snippets.php")
- 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected303 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 89 | 35 | 303 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 9.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 52.46KB | 25.83KB | ▼ 50.75% |
screenshot-2.png | 37.85KB | 16.18KB | ▼ 57.24% |