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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.61ms] Passed 4 tests
Server-side resources used by Featured Image Caption
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.65 ▼1.58 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.23 ▼2.66 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 48.43 ▼3.44 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.95 ▼6.75 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.24 ▲0.93 |
Featured Image Caption /wp-admin/options-general.php?page=ccfic | 3.33 | 35.65 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
ccfic_options |
ccfic_env |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Featured Image Caption
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.21 ▼0.14 | 1.84 ▼0.41 | 44.44 ▲1.21 |
Dashboard /wp-admin | 2,196 ▲19 | 5.51 ▼0.15 | 87.50 ▼3.11 | 41.27 ▲1.15 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.00 | 40.59 ▲0.50 | 36.50 ▲1.89 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,718 | 25.99 ▲2.79 | 921.24 ▲258.66 | 67.69 ▲16.76 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.04 | 101.76 ▼4.17 | 42.27 ▼1.34 |
Featured Image Caption /wp-admin/options-general.php?page=ccfic | 865 | 1.99 | 33.97 | 33.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- ccfic_env
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- ccfic_options
- theysaidso_admin_options
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ccfic
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ccfic
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/featured-image-caption/featured-image-caption.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: shortcode, caption, featured image, image
featured-image-caption/featured-image-caption.php 92% from 13 tests
The principal PHP file in "Featured Image Caption" v. 0.8.10 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin635 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 197 | 589 | 635 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 69.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 30.95% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 7 | |
▷ Global constants | 7 | 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
There were not PNG files found in your plugin