Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.08ms] Passed 4 tests
An overview of server-side resources used by WP Smart Tooltip
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 28.15 ▼13.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.97 ▲2.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 51.69 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 91.73 ▼11.23 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 38.65 ▲2.61 |
Setting /wp-admin/edit.php?post_type=wpsmart-tooltip&page=global_settings | 3.27 | 33.08 |
WP Smrat Tooltip /wp-admin/edit.php?post_type=wpsmart-tooltip | 3.35 | 41.35 |
Add New /wp-admin/post-new.php?post_type=wpsmart-tooltip | 3.42 | 50.25 |
How to Use /wp-admin/edit.php?post_type=wpsmart-tooltip&page=how_to_use | 3.27 | 36.17 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Smart Tooltip
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲237 | 14.12 ▼0.46 | 8.48 ▲6.72 | 45.23 ▲6.77 |
Dashboard /wp-admin | 2,280 ▲73 | 5.09 ▲0.18 | 107.35 ▲0.38 | 40.95 ▲0.66 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.30 ▲0.27 | 35.95 ▼4.67 | 32.43 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.24 ▲5.54 | 681.35 ▲39.32 | 37.18 ▼9.05 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.48 ▲0.31 | 100.24 ▼0.73 | 49.04 ▲3.24 |
Setting /wp-admin/edit.php?post_type=wpsmart-tooltip&page=global_settings | 1,167 | 2.23 | 44.05 | 26.86 |
WP Smrat Tooltip /wp-admin/edit.php?post_type=wpsmart-tooltip | 1,130 | 2.26 | 34.44 | 32.47 |
Add New /wp-admin/post-new.php?post_type=wpsmart-tooltip | 2,207 | 7.69 | 164.59 | 61.06 |
How to Use /wp-admin/edit.php?post_type=wpsmart-tooltip&page=how_to_use | 877 | 1.96 | 28.80 | 31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wpsmart-tooltip&page=global_settings
- > Notice in wp-content/plugins/wp-smart-tool-tip/view/settings.php+37
Trying to access array offset on value of type bool
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-smart-tool-tip/view/how_to_use.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-smart-tool-tip/view/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-tool-tip/wp-smart-tooltip.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: bootstrap tooltip, responsive, tooltip, dictionary, tips...
wp-smart-tool-tip/wp-smart-tooltip.php 77% from 13 tests
The main PHP file in "WP Smart Tooltip" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-smart-tool-tip.php" instead of "wp-smart-tooltip.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "4.0")
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
Good job! No executable or dangerous file extensions detected358 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 21 | 273 |
CSS | 2 | 6 | 1 | 56 |
JavaScript | 2 | 7 | 1 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.53 |
▷ 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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
4 PNG files occupy 0.29MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 41.49KB | 9.46KB | ▼ 77.19% |
assets/screenshot-1.png | 67.79KB | 17.78KB | ▼ 73.77% |
assets/screenshot-2.png | 64.21KB | 17.69KB | ▼ 72.46% |
assets/screenshot-4.png | 122.29KB | 35.26KB | ▼ 71.17% |