Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.35ms] Passed 4 tests
An overview of server-side resources used by Text Hover
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.53 ▼1.78 |
Dashboard /wp-admin | 3.37 ▲0.07 | 60.75 ▲7.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 59.40 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 110.82 ▼8.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 44.43 ▼9.80 |
Text Hover /wp-admin/options-general.php?page=text-hover/text-hover.php | 3.27 | 38.41 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Text Hover
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.88 ▼0.49 | 14.79 ▲3.34 | 123.07 ▼4.46 |
Dashboard /wp-admin | 2,195 ▲16 | 5.85 ▼0.05 | 190.28 ▲11.62 | 167.82 ▲92.87 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.05 ▼0.02 | 52.91 ▼49.76 | 244.85 ▲124.55 |
Add New Post /wp-admin/post-new.php | 1,374 ▼132 | 17.18 ▼4.10 | 794.86 ▲53.50 | 137.07 ▲38.15 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.18 ▼0.15 | 206.25 ▼5.10 | 260.87 ▲128.50 |
Text Hover /wp-admin/options-general.php?page=text-hover/text-hover.php | 1,028 | 2.25 | 80.76 | 196.66 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/text-hover/tests/phpunit/bootstrap.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/text-hover/tests/phpunit/bootstrap.php on line 19
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/text-hover/tests/phpunit/bootstrap.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: tooltips, acronyms, abbreviations, help, terms...
text-hover/text-hover.php Passed 13 tests
This is the main PHP file of "Text Hover" version 4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
138 characters long description:
Add hover text (aka tooltips) to content in posts. Handy for providing explanations of names, terms, phrases, abbreviations, and acronyms.
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
Success! There were no dangerous files found in this plugin2,294 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 450 | 765 | 1,688 |
Markdown | 4 | 112 | 0 | 549 |
Bourne Shell | 1 | 6 | 2 | 21 |
CSS | 2 | 0 | 0 | 18 |
XML | 1 | 0 | 0 | 14 |
JavaScript | 2 | 1 | 2 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 48.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 166 | |
▷ Static methods | 13 | 7.83% |
▷ Public methods | 146 | 87.95% |
▷ Protected methods | 20 | 12.05% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |