Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Compile error in wp-content/plugins/ithoughts-tooltip-glossary/class/class-backbone.php+37
Declaration of ithoughts\tooltip_glossary\Backbone::__construct($plugin_base) must be compatible with ithoughts\v1_0\Singleton::__construct()
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.87ms] Passed 4 tests
An overview of server-side resources used by iThoughts Tooltip Glossary
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.17 ▼3.27 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.45 ▼1.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.07 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.27 ▼12.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.40 ▲0.93 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 195 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iThoughts Tooltip Glossary
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.26 | 1.71 ▲0.01 | 42.21 ▼1.70 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▼0.07 | 104.06 ▼0.27 | 43.09 ▼1.09 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.03 | 33.73 ▼1.76 | 38.09 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.26 ▲5.79 | 658.98 ▲42.04 | 58.64 ▲1.19 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.01 | 96.35 ▼7.77 | 45.87 ▲0.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Even though no errors were found, 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 take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/tests/ApiTest.php:5
- > PHP Warning
array_shift() expects parameter 1 to be array, null given in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/tests/sort.php on line 10
- > PHP Fatal error
Uncaught Exception: nothing to parse in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/lessc.inc.php:2021
- > PHP Warning
array_shift() expects parameter 1 to be array, null given in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/tests/sort.php on line 8
- > PHP Warning
Declaration of lessify::parse($str = NULL) should be compatible with lessc::parse($str = NULL, $initialVariables = NULL) in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/lessify.inc.php on line 366
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/tests/InputTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ithoughts-tooltip-glossary/submodules/lessphp/tests/ErrorHandlingTest.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 36 tag instead of maximum 10
ithoughts-tooltip-glossary/ithoughts_tooltip_glossary.php 92% from 13 tests
"iThoughts Tooltip Glossary" version 3.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ithoughts-tooltip-glossary.php" instead of "ithoughts_tooltip_glossary.php")
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
There were no executable files found in this plugin19,726 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,497 | 2,180 | 8,275 |
JavaScript | 35 | 995 | 1,580 | 5,982 |
CSS | 40 | 117 | 93 | 1,768 |
PO File | 3 | 564 | 807 | 1,548 |
LESS | 37 | 474 | 56 | 1,529 |
JSON | 4 | 0 | 0 | 230 |
SVG | 4 | 1 | 1 | 226 |
Markdown | 3 | 44 | 0 | 87 |
Bourne Shell | 2 | 19 | 1 | 53 |
XML | 3 | 0 | 0 | 23 |
make | 1 | 3 | 0 | 4 |
YAML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 370.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 6 | 15.38% |
▷ Concrete classes | 33 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 413 | |
▷ Static methods | 33 | 7.99% |
▷ Public methods | 242 | 58.60% |
▷ Protected methods | 148 | 35.84% |
▷ Private methods | 23 | 5.57% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ext/tinymce/icon/glossaryterm-d.png | 0.70KB | 0.52KB | ▼ 25.21% |
ext/tinymce/icon/glossaryindex.png | 0.98KB | 1.01KB | 0.00% |
ext/tinymce/icon/glossaryterm.png | 0.44KB | 0.39KB | ▼ 11.75% |