Benchmarks
Plugin footprint 40% 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
- > Deprecated in wp-content/plugins/tinymce-emoticons/tinymce-emoticons.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; TinyMCE_Emoticons has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.98ms] Passed 4 tests
An overview of server-side resources used by TinyMCE Emoticons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 7.92 ▼35.25 |
Dashboard /wp-admin | 2.10 ▼1.21 | 7.11 ▼42.16 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.85 ▼49.55 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 8.45 ▼84.97 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.97 ▼32.49 |
TinyMCE Emoticons /wp-admin/options-general.php?page=tinyemo_settings | 2.10 | 6.14 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 130 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for TinyMCE Emoticons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.20 ▼1.17 | 1.99 ▼0.06 | 40.74 ▼5.61 |
Dashboard /wp-admin | 2,207 ▲22 | 5.83 ▲0.95 | 120.88 ▲3.04 | 46.89 ▲0.41 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.05 | 41.07 ▼13.06 | 44.26 ▲8.84 |
Add New Post /wp-admin/post-new.php | 1,364 ▼155 | 16.71 ▼6.52 | 573.63 ▼134.82 | 43.73 ▼19.47 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.00 | 97.57 ▼23.20 | 44.15 ▼4.37 |
TinyMCE Emoticons /wp-admin/options-general.php?page=tinyemo_settings | 823 | 1.79 | 29.13 | 26.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/tinymce-emoticons/tinymce-emoticons.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; TinyMCE_Emoticons has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=tinyemo_settings
- > Deprecated in wp-content/plugins/tinymce-emoticons/tinymce-emoticons.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; TinyMCE_Emoticons has a deprecated constructor
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tinymce-emoticons/tinymce-emoticons.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=tinyemo_settings
- > Javascript (severe) in unknown
/wp-content/plugins/tinymce-emoticons/js/tinymce-emoticons.js?ver=6.3.1 218:57 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (TinyMCE Emoticons settings page), #2 (TinyMCE popup in page add screen)
tinymce-emoticons/tinymce-emoticons.php Passed 13 tests
The main PHP script in "TinyMCE Emoticons" version 1.3 is automatically included on every request by WordPress
44 characters long description:
Easy way to add emoticons in posts and pages
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 detected785 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 24 | 448 |
JavaScript | 3 | 19 | 43 | 228 |
PHP | 1 | 19 | 16 | 109 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
88 PNG files occupy 0.53MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/emoticons-set-1/drink.png | 3.80KB | 0.84KB | ▼ 78.03% |
images/emoticons-set-1/handshake.png | 3.88KB | 0.99KB | ▼ 74.58% |
images/emoticons-set-1/note.png | 3.28KB | 0.46KB | ▼ 85.86% |
images/emoticons-set-1/sun.png | 4.22KB | 1.35KB | ▼ 67.95% |
images/emoticons-set-1/thinking.png | 4.31KB | 1.20KB | ▼ 72.08% |