Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.31ms] Passed 4 tests
A check of server-side resources used by TinyMCE Smiley Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 29.77 ▲2.21 |
Dashboard /wp-admin | 3.07 ▲0.01 | 43.21 ▼2.72 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.28 ▲2.68 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.53 ▼550.50 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.99 ▼2.21 |
Server storage [IO: ▲0.03MB] [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: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
TinyMCE Smiley Button: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.86 ▲0.20 | 9.01 ▲0.82 | 48.30 ▲4.98 |
Dashboard /wp-admin | 2,972 ▲41 | 5.92 ▼0.08 | 133.39 ▼30.31 | 112.25 ▼0.74 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.72 ▼0.00 | 66.82 ▲4.08 | 94.47 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,620 ▼56 | 21.78 ▲2.92 | 281.23 ▼101.99 | 97.68 ▼7.32 |
Media Library /wp-admin/upload.php | 1,809 ▼1 | 5.04 ▲0.00 | 139.71 ▼6.90 | 119.78 ▲3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinymce-smiley-button/tinymce-smiley-button.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (The WordPress editor after installing this plugin.)
tinymce-smiley-button/tinymce-smiley-button.php Passed 13 tests
"TinyMCE Smiley Button" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
Add Smiley Button to TinyMCE.
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
Good job! No executable or dangerous file extensions detected109 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 16 | 1 | 54 |
PHP | 1 | 6 | 8 | 31 |
CSS | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.46KB | 11.43KB | ▼ 51.26% |