Benchmarks
Plugin footprint 65% 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: ▲0.24MB] [CPU: ▼8.47ms] Passed 4 tests
This is a short check of server-side resources used by Template Dictionary
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.75 ▲1.40 |
Dashboard /wp-admin | 3.66 ▲0.31 | 46.14 ▼13.40 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 42.45 ▼7.09 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 83.29 ▼14.79 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 35.90 ▲2.14 |
Settings list /wp-admin/admin.php?page=template_dictionary_settings | 3.52 | 33.19 |
Add settings /wp-admin/admin.php?page=template_dictionary_add_edit_setting | 3.50 | 31.53 |
Add value /wp-admin/admin.php?page=template_dictionary_edit_value | 3.52 | 36.94 |
Template Dictionary /wp-admin/admin.php?page=template_dictionary | 3.52 | 35.01 |
Export/Import /wp-admin/admin.php?page=template_dictionary_export_import | 3.50 | 31.04 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 85 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_tdict_int |
wp_tdict_text |
wp_tdict |
wp_tdict_varchar |
New WordPress options |
---|
widget_recent-comments |
template-dictionary-version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Template Dictionary
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.25 ▼0.12 | 2.16 ▲0.45 | 43.61 ▲2.25 |
Dashboard /wp-admin | 2,240 ▲63 | 5.68 ▲0.02 | 83.90 ▼3.05 | 39.03 ▼5.36 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.00 ▲0.06 | 35.34 ▼0.15 | 30.70 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.38 ▲0.35 | 661.45 ▼10.46 | 60.79 ▲4.21 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.29 ▲0.11 | 102.14 ▼5.61 | 42.88 ▼6.90 |
Settings list /wp-admin/admin.php?page=template_dictionary_settings | 986 | 1.70 | 27.31 | 33.45 |
Add settings /wp-admin/admin.php?page=template_dictionary_add_edit_setting | 1,189 | 1.66 | 24.52 | 33.88 |
Add value /wp-admin/admin.php?page=template_dictionary_edit_value | 1,024 | 3.33 | 42.02 | 25.09 |
Template Dictionary /wp-admin/admin.php?page=template_dictionary | 1,025 | 1.67 | 26.17 | 29.30 |
Export/Import /wp-admin/admin.php?page=template_dictionary_export_import | 1,039 | 2.13 | 35.99 | 34.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_tdict_text
- wp_tdict_int
- wp_tdict_varchar
- wp_tdict
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- template-dictionary-version
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: dictionary, settings, variables, template, options
template-dictionary/template-dictionary.php Passed 13 tests
The principal PHP file in "Template Dictionary" v. 1.6.1 is loaded by WordPress automatically on each request
89 characters long description:
A plugin for developers which provides template variables dictionary editable in backend.
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 plugin2,260 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 512 | 419 | 2,109 |
JavaScript | 49 | 72 | 47 | 135 |
CSS | 5 | 9 | 11 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 1 | 6.25% |
Methods | 152 | |
▷ Static methods | 2 | 1.32% |
▷ Public methods | 119 | 78.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 33 | 21.71% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |