Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.41MB] [CPU: ▲1.23ms] Passed 4 tests
A check of server-side resources used by WP-Emoji
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.38 | 43.99 ▼0.76 |
Dashboard /wp-admin | 4.74 ▲1.43 | 50.75 ▲0.36 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 57.23 ▲10.36 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.38 | 100.30 ▲1.83 |
Media Library /wp-admin/upload.php | 4.74 ▲1.50 | 39.40 ▲3.48 |
WP-Emoji Settings /wp-admin/options-general.php?page=wordpress-emoji | 4.74 | 34.33 |
Server storage [IO: ▲0.84MB] [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: 479 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Emoji
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.26 ▼1.52 | 1.60 ▼0.25 | 39.35 ▼3.22 |
Dashboard /wp-admin | 2,219 ▲31 | 4.86 ▼1.03 | 109.52 ▼6.75 | 40.70 ▼3.67 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.15 ▲0.15 | 41.71 ▲5.49 | 37.86 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲18 | 18.07 ▼5.10 | 633.59 ▼2.79 | 53.51 ▲4.02 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.38 ▲0.00 | 106.88 ▲8.42 | 44.82 ▲0.76 |
WP-Emoji Settings /wp-admin/options-general.php?page=wordpress-emoji | 859 | 2.05 | 22.30 | 26.98 |
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 were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function content_url() in wp-content/plugins/wp-emoji/emoji.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-emoji/wp-emoji.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-emoji ===
) - Screenshots: Screenshot #1 (插件效果) image missing
wp-emoji/wp-emoji.php Passed 13 tests
The entry point to "WP-Emoji" version 1.2 is a PHP file that has certain tags in its header comment area
99 characters long description:
在你的博客里显示 Emoji 表情。Display Apple Emoji fonts(SoftBank) in your WordPress blog.
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
No dangerous file extensions were detected2,525 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 24 | 2,445 |
PO File | 2 | 26 | 26 | 80 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 21 | |
▷ Named functions | 21 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
472 compressed PNG files occupy 0.44MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
emoji/e211.png | 0.84KB | 0.89KB | 0.00% |
emoji/e30a.png | 0.71KB | 0.70KB | ▼ 1.37% |
emoji/e013.png | 0.83KB | 0.88KB | 0.00% |
emoji/e308.png | 0.79KB | 0.98KB | 0.00% |
emoji/e21f.png | 0.92KB | 0.91KB | ▼ 1.69% |