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.04MB] [CPU: ▼5.49ms] Passed 4 tests
Server-side resources used by KCPT Fading Image Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.06 ▼4.64 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.97 ▼6.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.92 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.31 ▼11.82 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.67 ▲1.36 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_kcpt_image_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by KCPT Fading Image Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 14.45 ▲0.18 | 1.78 ▼0.38 | 37.16 ▼13.62 |
Dashboard /wp-admin | 2,206 ▲14 | 4.86 ▼0.04 | 110.78 ▼19.42 | 42.33 ▼1.85 |
Posts /wp-admin/edit.php | 2,068 ▼24 | 2.00 ▼0.02 | 35.59 ▼1.00 | 32.67 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.69 ▼5.30 | 681.14 ▲18.22 | 53.72 ▼6.70 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.04 | 94.78 ▼0.61 | 40.65 ▼0.14 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_kcpt_image_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/kcpt-fading-image-widget/kcpt-image-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: widget, image, image widget
kcpt-fading-image-widget/kcpt-image-widget.php 92% from 13 tests
Analyzing the main PHP file in "KCPT Fading Image Widget" version 0.0.5
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kcpt-fading-image-widget.php" instead of "kcpt-image-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected224 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 13 | 150 |
JavaScript | 1 | 13 | 7 | 34 |
CSS | 1 | 3 | 0 | 31 |
Markdown | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
No PNG images were found in this plugin