Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.99ms] Passed 4 tests
A check of server-side resources used by FSM Custom Featured Image Caption
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.03 ▼0.43 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.49 ▼6.39 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.99 ▲3.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.95 ▼16.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.44 ▼0.34 |
FSM Custom Featured Image Caption /wp-admin/options-general.php?page=fsm-custom-featured-image-caption | 3.22 | 30.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for FSM Custom Featured Image Caption
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.62 ▼0.77 | 1.82 ▼0.19 | 41.56 ▼9.58 |
Dashboard /wp-admin | 2,210 ▲25 | 4.89 ▼0.92 | 100.53 ▼16.85 | 40.63 ▼7.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 39.63 ▼4.55 | 34.72 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.15 ▲4.83 | 664.76 ▲34.51 | 60.56 ▲10.23 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.02 | 100.12 ▼3.22 | 40.83 ▼2.91 |
FSM Custom Featured Image Caption /wp-admin/options-general.php?page=fsm-custom-featured-image-caption | 888 | 1.71 | 24.51 | 29.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/fsm-custom-featured-image-caption/fsm-custom-featured-image-caption.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fsm-custom-featured-image-caption/theme_compat.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
fsm-custom-featured-image-caption/fsm-custom-featured-image-caption.php Passed 13 tests
Analyzing the main PHP file in "FSM Custom Featured Image Caption" version 1.24
70 characters long description:
Allows adding custom captions to the featured image of posts and pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin836 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 232 | 92 | 600 |
JavaScript | 3 | 15 | 2 | 108 |
PO File | 2 | 30 | 44 | 82 |
JSON | 1 | 0 | 0 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin