Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.27ms] Passed 4 tests
Analyzing server-side resources used by Emoji Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.87 ▼5.48 |
Dashboard /wp-admin | 3.38 ▲0.04 | 50.69 ▼19.75 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.73 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 96.86 ▲5.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 38.86 ▲1.29 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Emoji Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,238 ▲1,477 | 13.97 ▼0.40 | 8.11 ▲6.19 | 38.48 ▼8.08 |
Dashboard /wp-admin | 3,532 ▲1,332 | 4.91 ▼0.90 | 119.42 ▼1.12 | 40.00 ▼4.20 |
Posts /wp-admin/edit.php | 3,414 ▲1,317 | 2.24 ▲0.09 | 46.82 ▲7.56 | 34.40 ▲2.42 |
Add New Post /wp-admin/post-new.php | 2,837 ▲1,311 | 23.32 ▲5.71 | 653.35 ▼29.60 | 52.91 ▼1.89 |
Media Library /wp-admin/upload.php | 2,710 ▲1,310 | 4.32 ▲0.00 | 106.04 ▲0.53 | 46.57 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/emoji-shortcode/admin/partials/emoji-shortcode-admin-display.php
- > /wp-content/plugins/emoji-shortcode/public/partials/emoji-shortcode-public-display.php
- > /wp-content/plugins/emoji-shortcode/admin/inc/style.css.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in emoji-shortcode/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== emoji-shortcode ===
)
emoji-shortcode/emoji-shortcode.php Passed 13 tests
The main file in "Emoji Shortcode" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin451 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 130 | 530 | 274 |
CSS | 3 | 159 | 8 | 160 |
JavaScript | 3 | 4 | 54 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
235 compressed PNG files occupy 1.40MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/emojis/tubelight_anim.png | 1.29KB | 1.32KB | 0.00% |
admin/emojis/publisher.png | 0.32KB | 0.34KB | 0.00% |
admin/emojis/slap_anim.png | 8.42KB | 8.65KB | 0.00% |
admin/emojis/brb_anim.png | 9.62KB | 10.10KB | 0.00% |
admin/emojis/priidu_anim.png | 2.82KB | 2.88KB | 0.00% |