Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼303.25ms] Passed 4 tests
Analyzing server-side resources used by Google Quick Ratings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 59.05 ▲0.75 |
Dashboard /wp-admin | 3.48 ▲0.08 | 40.56 ▼16.07 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 43.19 ▼23.32 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 102.84 ▼1,174.37 |
Media Library /wp-admin/upload.php | 3.37 ▲0.08 | 34.93 ▲7.99 |
Google Quick Ratings /wp-admin/options-general.php?page=google-quick-ratings | 3.34 | 26.51 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pn_apr_settings |
Browser metrics Passed 4 tests
Google Quick Ratings: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 16.22 ▲0.44 | 5.87 ▼0.68 | 2.46 ▼0.28 |
Dashboard /wp-admin | 2,893 ▲33 | 6.13 ▼0.02 | 115.72 ▼7.08 | 153.31 ▼16.13 |
Posts /wp-admin/edit.php | 2,662 ▼26 | 3.24 ▲0.01 | 79.43 ▲13.77 | 139.39 ▼9.32 |
Add New Post /wp-admin/post-new.php | 1,854 ▲188 | 23.42 ▲3.02 | 406.70 ▼19.35 | 217.52 ▲53.20 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.06 | 146.79 ▲4.10 | 191.67 ▼3.47 |
Google Quick Ratings /wp-admin/options-general.php?page=google-quick-ratings | 1,213 | 2.42 | 98.65 | 167.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- pn_apr_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-quick-ratings/google-quick-ratings.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/google-quick-ratings/trunk/google-quick-ratings.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== google-quick-ratings ===
) - Screenshots: Please add an image for screenshot #1 (Google Quick Ratings plugin option)
google-quick-ratings/google-quick-ratings.php Passed 13 tests
The entry point to "Google Quick Ratings" version 1.2 is a PHP file that has certain tags in its header comment area
60 characters long description:
Allows a post author to add a simple 5-star rating to posts.
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 detected334 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 129 | 51 | 271 |
PO File | 1 | 17 | 17 | 63 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.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
10 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star2-rating-sprite.png | 4.37KB | 2.22KB | ▼ 49.09% |
images/euro-rating-sprite.png | 4.51KB | 2.18KB | ▼ 51.60% |
trunk/images/heart-rating-sprite.png | 0.40KB | 0.40KB | 0.00% |
images/heart-rating-sprite.png | 0.40KB | 0.40KB | 0.00% |
images/star-rating-sprite.png | 0.48KB | 0.54KB | 0.00% |