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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.76ms] Passed 4 tests
This is a short check of server-side resources used by WP Emoticon Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.91 ▼0.61 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.19 ▼5.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.03 ▼7.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.65 ▼17.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.37 ▲5.40 |
Emoticon Rating /wp-admin/options-general.php?page=emo-settings | 3.19 | 28.28 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Emoticon Rating
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.52 ▼0.83 | 10.00 ▲8.22 | 45.16 ▲1.10 |
Dashboard /wp-admin | 2,206 ▲32 | 5.69 ▲0.03 | 86.92 ▼16.14 | 42.58 ▲1.89 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.00 ▲0.01 | 39.51 ▼3.79 | 35.08 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.09 ▼0.07 | 683.40 ▲46.92 | 64.84 ▲14.31 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.23 ▲0.03 | 111.71 ▼0.85 | 47.00 ▲2.88 |
Emoticon Rating /wp-admin/options-general.php?page=emo-settings | 924 | 2.02 | 25.07 | 27.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emo-settings
- > Notice in wp-content/plugins/wp-emoticon-rating/admin/wp-emo-admin.php+136
Trying to access array offset on value of type bool
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-emoticon-rating/index.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emoticon-rating/admin/wp-emo-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-emoticon-rating/src/wp-emo-display.php:2
- > 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 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-emoticon-rating ===
)
wp-emoticon-rating/wp-emoticon-rating.php Passed 13 tests
The entry point to "WP Emoticon Rating" version 1.0.1 is a PHP file that has certain tags in its header comment area
43 characters long description:
Allow your users to express their emotions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected455 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 51 | 19 | 329 |
CSS | 2 | 1 | 0 | 65 |
JavaScript | 2 | 6 | 0 | 61 |
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.47 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 1 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
11 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lough.png | 7.58KB | 4.26KB | ▼ 43.84% |
images/sad.png | 8.68KB | 4.62KB | ▼ 46.78% |
images/smile.png | 8.71KB | 4.71KB | ▼ 45.91% |
assets/screenshot-2.png | 26.31KB | 11.03KB | ▼ 58.08% |
images/angry.png | 9.20KB | 4.77KB | ▼ 48.12% |