Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.75ms] Passed 4 tests
Analyzing server-side resources used by xili-dictionary
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.09 ▲7.67 |
Dashboard /wp-admin | 3.40 ▲0.06 | 42.08 ▼19.41 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.25 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.66 ▼0.23 | 74.55 ▼15.86 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 42.23 ▲9.36 |
Origins /wp-admin/edit-tags.php?taxonomy=origin&post_type=xdmsg | 3.39 | 41.15 |
Writers /wp-admin/edit-tags.php?taxonomy=writer&post_type=xdmsg | 3.39 | 41.16 |
Tools, Files po mo /wp-admin/edit.php?post_type=xdmsg&page=dictionary_page | 3.39 | 39.55 |
New Msgid /wp-admin/post-new.php?post_type=xdmsg | 3.45 | 59.41 |
Msg list /wp-admin/edit.php?post_type=xdmsg | 3.45 | 39.86 |
Server storage [IO: ▲1.14MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
xili_dictionary_settings |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for xili-dictionary
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 13.20 ▼1.53 | 4.33 ▲2.71 | 44.95 ▲5.71 |
Dashboard /wp-admin | 2,276 ▲96 | 5.70 ▲0.06 | 88.62 ▲2.10 | 68.45 ▲25.50 |
Posts /wp-admin/edit.php | 2,193 ▲93 | 2.31 ▲0.30 | 44.02 ▲5.91 | 36.33 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,729 ▲201 | 22.26 ▼0.73 | 698.11 ▲27.84 | 60.28 ▲5.85 |
Media Library /wp-admin/upload.php | 1,487 ▲90 | 4.25 ▲0.05 | 102.46 ▼1.92 | 76.90 ▲28.64 |
Origins /wp-admin/edit-tags.php?taxonomy=origin&post_type=xdmsg | 1,402 | 1.94 | 41.64 | 34.59 |
Writers /wp-admin/edit-tags.php?taxonomy=writer&post_type=xdmsg | 1,430 | 1.99 | 35.31 | 32.21 |
Tools, Files po mo /wp-admin/edit.php?post_type=xdmsg&page=dictionary_page | 1,923 | 2.95 | 64.11 | 39.02 |
New Msgid /wp-admin/post-new.php?post_type=xdmsg | 2,153 | 3.24 | 69.61 | 105.72 |
Msg list /wp-admin/edit.php?post_type=xdmsg | 1,332 | 2.25 | 41.45 | 33.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- xili_dictionary_settings
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=xdmsg
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/edit.php?post_type=xdmsg&page=dictionary_page
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=xdmsg&page=dictionary_page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/xili-dictionary/xili-dictionary.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/xili-dictionary/includes/pomo/po.php' (include_path='.:/usr/share/php') in wp-content/plugins/xili-dictionary/includes/pot-ext-meta.php on line 11
- > PHP Warning
require_once(wp-content/plugins/xili-dictionary/includes/pomo/po.php): failed to open stream: No such file or directory in wp-content/plugins/xili-dictionary/includes/pot-ext-meta.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/xili-dictionary/includes/extract/extract-wp.php on line 2
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/xili-dictionary/includes/extract/extract-wp.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/pomo/entry.php' (include_path='.:/usr/share/php') in wp-content/plugins/xili-dictionary/includes/extract/extract-wp.php on line 2
- > PHP Warning
require_once(ABSPATHWPINC/pomo/entry.php): failed to open stream: No such file or directory in wp-content/plugins/xili-dictionary/includes/extract/extract-wp.php on line 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (24 tag instead of maximum 10)
xili-dictionary/xili-dictionary.php 92% from 13 tests
The principal PHP file in "xili-dictionary" v. 2.12.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin16,021 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,519 | 1,143 | 7,740 |
JavaScript | 2 | 1,931 | 6,916 | 6,264 |
PO File | 1 | 645 | 763 | 1,564 |
CSS | 3 | 14 | 50 | 453 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,454)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 382.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 1,454.00 |
Average method complexity | 8.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 9 | 4.17% |
▷ Public methods | 210 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 2.78% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
26 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xili-css/flags/en_us.png | 0.59KB | 0.65KB | 0.00% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
xili-css/flags/de_de.png | 0.53KB | 0.72KB | 0.00% |
xili-css/flags/ja.png | 0.41KB | 0.46KB | 0.00% |
images/back_enabled_hover.png | 0.44KB | 0.60KB | 0.00% |