Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method loccoEmoticons::activate() should not be called statically
Server metrics [RAM: ▼0.90MB] [CPU: ▼32.46ms] Passed 4 tests
Analyzing server-side resources used by Locco Emoticons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.03 | 33.12 ▼8.90 |
Dashboard /wp-admin | 3.04 ▼0.26 | 25.75 ▼20.16 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 27.21 ▼23.76 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 25.10 ▼75.28 |
Media Library /wp-admin/upload.php | 3.04 ▼0.18 | 28.34 ▼10.64 |
Locco Emoticons /wp-admin/options-general.php?page=loccoEmoticons | 3.05 | 23.46 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Locco_Ro_emoticons |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Locco Emoticons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.72 ▲0.46 | 1.78 ▲0.18 | 43.05 ▼0.37 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.05 | 91.57 ▲4.18 | 37.04 ▼3.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.00 | 40.43 ▲1.39 | 38.92 ▲4.40 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.60 ▲0.44 | 692.74 ▼21.20 | 59.93 ▲6.21 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.14 ▼0.28 | 107.78 ▼2.94 | 46.61 ▲1.48 |
Locco Emoticons /wp-admin/options-general.php?page=loccoEmoticons | 1,557 | 1.90 | 29.87 | 75.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method loccoEmoticons::menu() should not be called statically
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- Locco_Ro_emoticons
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=loccoEmoticons
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method loccoEmoticons::menu() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=loccoEmoticons
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=loccoEmoticons
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method loccoEmoticons::control() should not be called statically
- > GET request to /wp-admin/options-general.php?page=loccoEmoticons
- > Notice in wp-content/plugins/locco-emoticons/emoticons.php+73
Undefined index: Locco_Ro_emoticons_action
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/locco-emoticons/emoticons-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/locco-emoticons/emoticons-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/locco-emoticons/emoticons-list.php:2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: smileys, smiley, smilies, emoticon, comment...
locco-emoticons/emoticons.php 92% from 13 tests
The main file in "Locco Emoticons" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("locco-emoticons.php" instead of "emoticons.php")
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
Success! There were no dangerous files found in this plugin310 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 32 | 310 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin