Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/tinyratings/class-tinyratings.php+505
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼1.74MB] [CPU: ▼57.50ms] Passed 4 tests
Server-side resources used by tinyRatings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 4.88 ▼36.49 |
Dashboard /wp-admin | 2.28 ▼1.06 | 6.21 ▼58.76 |
Posts /wp-admin/edit.php | 2.28 ▼1.07 | 7.39 ▼40.77 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.60 | 5.96 ▼93.96 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 6.78 ▼27.08 |
tinyRatings /wp-admin/options-general.php?page=tinyratings-settings | 2.28 | 6.16 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tinyratings |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_tinyratings-top-widget |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for tinyRatings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,113 ▲1,352 | 20.34 ▲5.98 | 62.07 ▲60.31 | 41.02 ▼0.68 |
Dashboard /wp-admin | 2,812 ▲638 | 8.45 ▲2.88 | 164.50 ▲62.63 | 64.99 ▲23.26 |
Posts /wp-admin/edit.php | 2,723 ▲626 | 4.16 ▲2.20 | 135.26 ▲99.43 | 69.17 ▲36.73 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.55 ▲0.54 | 712.94 ▲60.90 | 87.44 ▲38.01 |
Media Library /wp-admin/upload.php | 2,011 ▲614 | 5.94 ▲1.74 | 161.72 ▲67.01 | 65.12 ▲21.36 |
tinyRatings /wp-admin/options-general.php?page=tinyratings-settings | 1,939 | 3.10 | 144.50 | 63.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/tinyratings/class-tinyratings.php+505
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie tables were found after uninstall: 1 table
- wp_tinyratings
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_tinyratings-top-widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tinyratings-settings
- > Warning in wp-content/plugins/tinyratings/class-tinyratings.php+505
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SRP 50% from 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/tinyratings/class-tinyratings.php on line 505
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tinyratings/class-tinyratings-widget.php:12
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: 5 stars, ratings, like, dislike, stars...
tinyratings/tinyratings.php Passed 13 tests
The main PHP file in "tinyRatings" ver. 0.2.2 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Plain and simple ratings plugin. Rate anything.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .as - Adobe Flash ActionScript File in Adobe Flash
- ☣ wp-content/plugins/tinyratings/js/fingerprintjs2/flash/FontList.as
- .as - Adobe Flash ActionScript File in Adobe Flash
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,183 | 388 | 6,294 |
PHP | 9 | 54 | 482 | 1,414 |
Markdown | 4 | 78 | 0 | 194 |
CSS | 2 | 10 | 3 | 128 |
HTML | 2 | 19 | 2 | 121 |
JSON | 2 | 0 | 0 | 58 |
Bourne Shell | 1 | 6 | 5 | 29 |
ActionScript | 1 | 5 | 0 | 26 |
make | 1 | 2 | 0 | 5 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 50 | 66.67% |
▷ Public methods | 71 | 94.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.33% |
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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.58MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 81.26KB | 33.19KB | ▼ 59.16% |
js/fingerprintjs2/specs/lib/jasmine-2.3.4/jasmine_favicon.png | 1.45KB | 1.48KB | 0.00% |
screenshot-2.png | 231.17KB | 107.00KB | ▼ 53.71% |
screenshot-1.png | 275.74KB | 122.38KB | ▼ 55.62% |