Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼6.69ms] Passed 4 tests
Analyzing server-side resources used by Emoji Reaction Rating
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 23.04 ▼21.30 |
Dashboard /wp-admin | 3.58 ▲0.27 | 51.52 ▼2.46 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 51.91 ▲6.95 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 82.90 ▼2.82 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.19 ▼0.19 |
Emoji Reaction Rating Settings /wp-admin/options-general.php?page=emoji-reaction-rating-settings-page | 3.38 | 32.18 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Emoji Reaction Rating: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,075 ▲329 | 15.11 ▲0.95 | 7.08 ▲5.33 | 37.05 ▼6.61 |
Dashboard /wp-admin | 2,351 ▲169 | 6.44 ▲1.55 | 121.59 ▲5.96 | 37.88 ▼11.45 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 3.34 ▲1.33 | 50.26 ▲13.87 | 32.34 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.17 ▼0.06 | 628.89 ▼47.43 | 36.03 ▼18.49 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.10 ▼0.09 | 79.03 ▼21.34 | 41.02 ▼1.08 |
Emoji Reaction Rating Settings /wp-admin/options-general.php?page=emoji-reaction-rating-settings-page | 1,127 | 3.02 | 39.12 | 63.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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emoji-reaction-rating-settings-page
- > Notice in wp-content/plugins/emoji-reaction-rating/includes/callbacks/Actions.php+167
Trying to access array offset on value of type bool
- 20 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emoji-reaction-rating-settings-page
- > Notice in wp-content/plugins/emoji-reaction-rating/includes/callbacks/Actions.php+167
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/emoji-reaction-rating/emoji-reaction-rating.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: post reaction, article rating, post feedback, emoji reaction rating, post rating...
emoji-reaction-rating/emoji-reaction-rating.php Passed 13 tests
The entry point to "Emoji Reaction Rating" version 1.1 is a PHP file that has certain tags in its header comment area
70 characters long description:
A useful plugin to create Emoji based Reaction Ratings for post types.
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 detected1,076 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 191 | 398 | 840 |
CSS | 2 | 22 | 0 | 126 |
JavaScript | 2 | 8 | 1 | 101 |
JSON | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 12 | 18.18% |
▷ Public methods | 64 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.03% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 91.43KB | 26.55KB | ▼ 70.97% |
resources/images/3.png | 5.42KB | 2.10KB | ▼ 61.18% |
resources/images/4.png | 5.63KB | 2.16KB | ▼ 61.63% |
assets/screenshot-3.png | 59.11KB | 17.60KB | ▼ 70.22% |
resources/images/2.png | 5.46KB | 2.13KB | ▼ 60.93% |