Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/emoji-reactions/emoji-emotions.php+220
Use of undefined constant emojiemo_shortcode_render - assumed 'emojiemo_shortcode_render' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.03MB] [CPU: ▼52.29ms] Passed 4 tests
Analyzing server-side resources used by Emoji Reactions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▼0.51 | 6.84 ▼32.64 |
Dashboard /wp-admin | 2.97 ▼0.33 | 8.44 ▼39.31 |
Posts /wp-admin/edit.php | 2.97 ▼0.38 | 10.23 ▼39.20 |
Add New Post /wp-admin/post-new.php | 2.97 ▼2.91 | 7.29 ▼98.02 |
Media Library /wp-admin/upload.php | 2.97 ▼0.25 | 9.34 ▼25.78 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_emojiemo_emojis |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Emoji Reactions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲134 | 13.61 ▼0.75 | 7.54 ▲5.56 | 40.48 ▼7.06 |
Dashboard /wp-admin | 2,215 ▲24 | 4.87 ▼0.03 | 101.08 ▼1.77 | 39.75 ▼0.94 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.02 ▼0.01 | 38.90 ▼4.22 | 33.67 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,524 ▼20 | 23.21 ▲4.86 | 664.19 ▲55.15 | 66.75 ▲15.03 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.29 ▲0.11 | 96.33 ▲1.41 | 44.28 ▲2.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/emoji-reactions/emoji-emotions.php+220
Use of undefined constant emojiemo_shortcode_render - assumed 'emojiemo_shortcode_render' (this will throw an Error in a future version of PHP)
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_emojiemo_emojis
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/emoji-reactions/emoji-emotions.php:218
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/emoji-reactions/emojione/test/EmojioneTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Emojione\\ClientInterface' not found in wp-content/plugins/emoji-reactions/emojione/src/Client.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/emoji-reactions/emojione/test/ConversionTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/emoji-reactions/emojione/test/EmojiTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/emoji-reactions/emojione/test/SpriteTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Emojione\\RulesetInterface' not found in wp-content/plugins/emoji-reactions/emojione/src/Ruleset.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #0, #0 in emoji-reactions/assets to your readme.txt
- Screenshots: Screenshot #1 (Click Emoji to share reaction) image required
emoji-reactions/emoji-emotions.php 92% from 13 tests
The main PHP script in "Emoji Reactions" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("emoji-reactions.php" instead of "emoji-emotions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin6,357 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 264 | 1,886 | 3,607 |
CSS | 2 | 1,283 | 0 | 2,614 |
JavaScript | 1 | 18 | 0 | 123 |
XML | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 6.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 5 | 6.94% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 4 | 5.56% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 2.42MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/add_hover.png | 3.62KB | 2.13KB | ▼ 41.09% |
static/emojione.sprites.png | 2,335.13KB | 1,020.65KB | ▼ 56.29% |
screenshot-1.png | 98.46KB | 32.85KB | ▼ 66.63% |
static/add.png | 3.28KB | 2.12KB | ▼ 35.43% |
screenshot-2.png | 41.27KB | 16.80KB | ▼ 59.29% |