Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by Moein Dictionary(free)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.43 ▼2.17 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.91 ▲5.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.49 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 83.09 ▼10.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.13 ▼1.38 |
Data installation /wp-admin/admin.php?page=mdict-data-intall | 3.28 | 33.98 |
Settings /wp-admin/admin.php?page=mdict-settings | 3.28 | 32.73 |
Add Word /wp-admin/admin.php?page=mdict-add | 3.23 | 29.05 |
Words List /wp-admin/admin.php?page=mdict-words | 3.24 | 33.21 |
Dashboard /wp-admin/admin.php?page=mdict | 3.27 | 31.67 |
Server storage [IO: ▲3.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pn_mdict |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
mdict_page |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Moein Dictionary(free)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲258 | 13.96 ▼0.43 | 7.60 ▲5.72 | 39.60 ▼4.99 |
Dashboard /wp-admin | 2,257 ▲66 | 5.88 ▼0.00 | 95.88 ▼2.92 | 43.78 ▲3.95 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.16 ▲0.10 | 33.95 ▼11.12 | 34.80 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 17.63 ▼5.69 | 656.19 ▲56.68 | 68.01 ▲17.41 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.24 ▲0.03 | 97.62 ▼7.98 | 42.54 ▼1.49 |
Data installation /wp-admin/admin.php?page=mdict-data-intall | 978 | 2.05 | 23.66 | 40.28 |
Settings /wp-admin/admin.php?page=mdict-settings | 935 | 2.04 | 23.04 | 33.52 |
Add Word /wp-admin/admin.php?page=mdict-add | 858 | 2.07 | 24.69 | 29.22 |
Words List /wp-admin/admin.php?page=mdict-words | 1,035 | 2.09 | 26.77 | 36.92 |
Dashboard /wp-admin/admin.php?page=mdict | 897 | 2.03 | 24.82 | 44.17 |
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
- Zombie tables detected upon uninstall: 1 table
- wp_pn_mdict
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- mdict_page
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/moein-dictionary-free/inc/admin/add-word.php
- > /wp-content/plugins/moein-dictionary-free/inc/admin/import-data.php
- > /wp-content/plugins/moein-dictionary-free/moein-dictionary-free.php
- > /wp-content/plugins/moein-dictionary-free/inc/admin/words-list.php
- > /wp-content/plugins/moein-dictionary-free/inc/admin/dashboard.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: current in wp-content/plugins/moein-dictionary-free/inc/pagination/render.inc.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moein-dictionary-free/inc/functions.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moein-dictionary-free/inc/admin/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/moein-dictionary-free/inc/templates/searchbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/moein-dictionary-free/inc/shortcodes/searchbox.php:3
- > PHP Notice
Undefined variable: rpp in wp-content/plugins/moein-dictionary-free/inc/pagination/render.inc.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/moein-dictionary-free/inc/admin/data-template.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/moein-dictionary-free/inc/ajax.php:20
- > PHP Fatal error
Uncaught Error: Class 'MDict_SearchTools' not found in wp-content/plugins/moein-dictionary-free/inc/admin/dashboard-template.php:2
- > PHP Notice
Undefined variable: total in wp-content/plugins/moein-dictionary-free/inc/pagination/render.inc.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
7 plugin tags: dictionary, moein, persian dictionary, persian, moein dictionary...
moein-dictionary-free/moein-dictionary-free.php 92% from 13 tests
The main file in "Moein Dictionary(free)" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin40,554 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SQL | 4 | 0 | 0 | 37,585 |
PHP | 20 | 312 | 254 | 1,485 |
CSS | 6 | 113 | 16 | 850 |
JavaScript | 4 | 31 | 56 | 419 |
PO File | 1 | 100 | 135 | 202 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An short overview of 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.20 |
Average class complexity | 7.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 20 | 25.97% |
▷ Public methods | 74 | 96.10% |
▷ Protected methods | 3 | 3.90% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin