Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.25ms] Passed 4 tests
An overview of server-side resources used by Kings Caption Hover
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.27 ▼7.25 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.81 ▼4.88 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.42 ▼8.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.86 ▼8.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.06 ▲2.64 |
Hover Captions /wp-admin/edit.php?post_type=captionhover | 3.30 | 39.06 |
Add New /wp-admin/post-new.php?post_type=captionhover | 3.38 | 50.13 |
Caption Hover Category /wp-admin/edit-tags.php?taxonomy=caption_hover_cat&post_type=captionhover | 3.25 | 33.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Kings Caption Hover
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲221 | 13.54 ▼1.02 | 8.40 ▲6.67 | 39.95 ▼3.15 |
Dashboard /wp-admin | 2,252 ▲64 | 5.85 ▼0.14 | 98.41 ▼19.28 | 39.92 ▼1.31 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.02 | 42.60 ▲0.13 | 36.51 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.35 ▲0.12 | 640.88 ▲20.80 | 56.09 ▲0.55 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 4.21 ▲0.02 | 97.40 ▼10.44 | 43.85 ▲0.01 |
Hover Captions /wp-admin/edit.php?post_type=captionhover | 1,098 | 2.01 | 37.85 | 28.99 |
Add New /wp-admin/post-new.php?post_type=captionhover | 2,409 | 7.76 | 165.83 | 66.30 |
Caption Hover Category /wp-admin/edit-tags.php?taxonomy=caption_hover_cat&post_type=captionhover | 1,314 | 2.18 | 26.82 | 29.56 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kings-caption-hover/plugin-hook.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: responsive portfolio, gallery, gallery effect, portfolio effect, image...
kings-caption-hover/plugin-hook.php 92% from 13 tests
The main PHP file in "Kings Caption Hover" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kings-caption-hover.php" instead of "plugin-hook.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin83 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 8 | 80 |
JavaScript | 2 | 0 | 3 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin