Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.17ms] Passed 4 tests
Analyzing server-side resources used by WPSSO Add Five Stars for Google Rich Snippets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.28 ▼0.06 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.28 ▼0.54 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.46 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.42 ▼16.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.47 ▼0.15 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WPSSO Add Five Stars for Google Rich Snippets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.14 ▼0.21 | 1.80 ▲0.08 | 43.43 ▼3.61 |
Dashboard /wp-admin | 2,201 ▲24 | 5.64 ▼0.09 | 97.08 ▲8.86 | 43.96 ▲5.36 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.00 | 34.00 ▼6.22 | 37.93 ▲3.05 |
Add New Post /wp-admin/post-new.php | 1,532 ▼13 | 23.54 ▼1.54 | 637.65 ▼6.30 | 51.63 ▼12.88 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▲0.03 | 100.06 ▼2.02 | 43.01 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/wpsso-add-five-stars/wpsso-add-five-stars.php
- > /wp-content/plugins/wpsso-add-five-stars/lib/filters.php
- > /wp-content/plugins/wpsso-add-five-stars/lib/config.php
- > /wp-content/plugins/wpsso-add-five-stars/lib/abstract/add-on.php
- > /wp-content/plugins/wpsso-add-five-stars/lib/abstract/com/add-on.php
- > /wp-content/plugins/wpsso-add-five-stars/lib/register.php
- > /wp-content/plugins/wpsso-add-five-stars/gettext/gettext-lib-config.php
- > /wp-content/plugins/wpsso-add-five-stars/gettext/gettext-lib-abstract-com.php
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: reviews, rich snippet, ratings, schema, google...
wpsso-add-five-stars/wpsso-add-five-stars.php Passed 13 tests
"WPSSO Add Five Stars for Google Rich Snippets" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
Add a 5 star rating and review from the site organization if the Schema markup does not already have an 'aggregateRating' property.
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
Good job! No executable or dangerous file extensions detected548 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 231 | 170 | 421 |
Markdown | 1 | 24 | 0 | 60 |
PO File | 1 | 10 | 10 | 37 |
HTML | 2 | 32 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 8 | 25.00% |
▷ Public methods | 24 | 75.00% |
▷ Protected methods | 4 | 12.50% |
▷ Private methods | 4 | 12.50% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 48.37KB | 19.85KB | ▼ 58.97% |
images/icon-128x128.png | 19.77KB | 8.22KB | ▼ 58.43% |