Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.60ms] Passed 4 tests
An overview of server-side resources used by Google rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.13 ▼6.65 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.20 ▼0.94 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.26 ▼2.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.23 ▼19.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.91 ▼2.15 |
Google Rating /wp-admin/options-general.php?page=google_rating | 3.24 | 31.36 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_google_ratings |
New WordPress options |
---|
widget_recent-comments |
google_rating_ip_check |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
google_rating_show_in_posts |
theysaidso_admin_options |
google_rating_votes_label |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Google rating
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.61 ▼0.76 | 10.80 ▲8.69 | 42.19 ▼2.12 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.98 | 107.97 ▲1.53 | 42.04 ▼1.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.00 | 40.15 ▼0.20 | 36.57 ▲5.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.28 ▼4.99 | 625.38 ▲6.98 | 60.56 ▲8.99 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.15 ▼0.05 | 94.39 ▼1.41 | 42.78 ▼1.93 |
Google Rating /wp-admin/options-general.php?page=google_rating | 829 | 2.04 | 24.60 | 28.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: rich snippet, rate posts, rate, star rating, stars...
stars-google-rating/stars-google-rating.php Passed 13 tests
The main PHP file in "Google rating" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Simple and fast rating system with google rich snippet http://schema.org/AggregateRating
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected331 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 73 | 122 | 267 |
CSS | 1 | 7 | 2 | 33 |
JavaScript | 2 | 0 | 0 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin