Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.87ms] Passed 4 tests
Analyzing server-side resources used by Native Emoji
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 46.20 ▲1.11 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.86 ▼3.00 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.48 ▼4.01 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.23 ▼21.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 41.80 ▲5.78 |
Native Emoji /wp-admin/options-general.php?page=nep_native_emoji | 3.33 | 37.61 |
Server storage [IO: ▲2.41MB] [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: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_nep_native_emoji |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Native Emoji
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.67 ▼0.91 | 1.79 ▼0.17 | 43.27 ▲1.07 |
Dashboard /wp-admin | 2,204 ▲16 | 4.85 ▼0.03 | 107.56 ▲4.96 | 42.07 ▼2.12 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 34.70 ▼7.48 | 35.29 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.03 ▲5.52 | 641.36 ▼65.57 | 54.13 ▲4.51 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.31 ▼0.10 | 94.54 ▼6.69 | 44.17 ▼3.27 |
Native Emoji /wp-admin/options-general.php?page=nep_native_emoji | 1,019 | 2.07 | 24.55 | 30.50 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/native-emoji/options-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/native-emoji/native-emoji.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: emoji comments, icons, emoji, editor, emoticons...
native-emoji/native-emoji.php 92% from 13 tests
The main PHP file in "Native Emoji" ver. 3.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 275 characters long)
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
There were no executable files found in this plugin10,943 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 115 | 42 | 5,296 |
CSS | 2 | 138 | 28 | 5,263 |
PHP | 5 | 56 | 58 | 384 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.62MB with 1.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/nep_sprite.png | 14.79KB | 5.71KB | ▼ 61.39% |
img/emoji_sprite.png | 1,648.60KB | 330.13KB | ▼ 79.97% |