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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.16ms] Passed 4 tests
This is a short check of server-side resources used by WP Glossary Hover
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.18 ▲1.73 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.01 ▼3.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.77 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.36 ▼7.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.37 ▲0.54 |
All Glossary Terms /wp-admin/edit.php?post_type=wpgh-glossary | 3.35 | 32.40 |
WP Glossary Hover /wp-admin/options-general.php?page=wp-glossary-hover | 3.27 | 26.84 |
Add New /wp-admin/post-new.php?post_type=wpgh-glossary | 3.51 | 49.10 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 465 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp-glossary-hover |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Glossary Hover
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲209 | 14.11 ▼0.42 | 11.94 ▲10.32 | 42.69 ▼0.40 |
Dashboard /wp-admin | 2,245 ▲65 | 5.75 ▲0.14 | 84.46 ▼14.86 | 39.30 ▼1.47 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.31 ▲0.32 | 35.68 ▼0.70 | 33.31 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,575 ▲46 | 18.86 ▼4.18 | 654.30 ▼16.15 | 45.93 ▼4.95 |
Media Library /wp-admin/upload.php | 1,453 ▲53 | 4.39 ▲0.18 | 104.66 ▲1.35 | 46.92 ▲3.12 |
All Glossary Terms /wp-admin/edit.php?post_type=wpgh-glossary | 1,161 | 2.24 | 33.46 | 29.54 |
WP Glossary Hover /wp-admin/options-general.php?page=wp-glossary-hover | 1,119 | 2.10 | 25.36 | 25.28 |
Add New /wp-admin/post-new.php?post_type=wpgh-glossary | 2,476 | 7.82 | 165.25 | 62.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-multi-checkbox-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-checkbox-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-color-picker-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-select-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-textbox-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Field' not found in wp-content/plugins/wp-glossary-hover/includes/fields/class-integer-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPGH_Base_Enum' not found in wp-content/plugins/wp-glossary-hover/includes/enums/class-field-types-enum.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
3 plugin tags: definition, glossary, hover
wp-glossary-hover/wp-glossary-hover.php Passed 13 tests
The entry point to "WP Glossary Hover" version 1.3.1 is a PHP file that has certain tags in its header comment area
69 characters long description:
When hovering over a word or phrase show the user created definition.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,316 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 26 | 265 | 653 | 8,933 |
PHP | 19 | 511 | 1,208 | 1,220 |
PO File | 1 | 54 | 68 | 134 |
JavaScript | 2 | 4 | 0 | 29 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 14 | 19.72% |
▷ Public methods | 50 | 70.42% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 20 | 28.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
345 PNG files occupy 1.12MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery-ui/css/themes/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png | 0.33KB | 0.18KB | ▼ 44.41% |
vendor/jquery-ui/css/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
vendor/jquery-ui/css/themes/black-tie/images/ui-bg_flat_65_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
vendor/jquery-ui/css/themes/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png | 0.27KB | 0.16KB | ▼ 41.07% |
vendor/jquery-ui/css/themes/dot-luv/images/ui-bg_dots-small_40_00498f_2x2.png | 0.22KB | 0.08KB | ▼ 61.16% |