Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.95ms] Passed 4 tests
This is a short check of server-side resources used by Dictionary
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.19 ▲8.00 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.42 ▼1.49 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.77 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 88.72 ▼567.46 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 35.01 ▼3.39 |
Dictionary /wp-admin/options-general.php?page=dictionary_plugin | 2.98 | 27.46 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_dictionary_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Dictionary
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲89 | 16.30 ▲0.71 | 8.32 ▲0.27 | 50.50 ▲3.35 |
Dashboard /wp-admin | 2,978 ▲41 | 5.93 ▼0.21 | 142.85 ▼5.81 | 121.39 ▲8.36 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.82 ▲0.00 | 65.06 ▲0.85 | 88.40 ▼0.76 |
Add New Post /wp-admin/post-new.php | 3,690 ▲1 | 21.03 ▲5.98 | 445.61 ▲23.94 | 111.50 ▼4.50 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.01 ▼0.01 | 158.94 ▲2.01 | 116.76 ▼11.47 |
Dictionary /wp-admin/options-general.php?page=dictionary_plugin | 1,090 | 2.47 | 57.97 | 77.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_dictionary_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dictionary/add-word.php
- > /wp-content/plugins/dictionary/search-word.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined index: words_to_show in wp-content/plugins/dictionary/show-random.php on line 5
- > PHP Notice
Undefined index: word in wp-content/plugins/dictionary/add-word.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dictionary/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dictionary/dictionary.php:13
- > PHP Notice
Undefined index: term in wp-content/plugins/dictionary/search-word.php on line 4
- > PHP Notice
Undefined index: definition in wp-content/plugins/dictionary/add-word.php on line 4
- > PHP Notice
Undefined index: word_override in wp-content/plugins/dictionary/show-random.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dictionary/admin.php:3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=dictionary_plugin
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=dictionary_plugin:183:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=dictionary_plugin
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This is how the widget looks in twentyten, with no styling.), #2 (Widget options), #3 (Settings page)
dictionary/dictionary.php Passed 13 tests
Analyzing the main PHP file in "Dictionary" version 1.0
89 characters long description:
This plugin adds a widget to display a random word and it's definition from the json file
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin289 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 80 | 53 | 288 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.62KB | 4.87KB | ▼ 43.53% |
screenshot-3.png | 10.20KB | 5.48KB | ▼ 46.31% |
screenshot-1.png | 6.32KB | 3.98KB | ▼ 36.99% |