Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.41ms] Passed 4 tests
An overview of server-side resources used by Cresta Image In Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.21 ▼8.02 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.63 ▼7.04 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.30 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.86 ▼8.51 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.79 ▼2.07 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_cresta_image_in_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cresta Image In Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.73 ▲0.33 | 1.70 ▼0.27 | 40.67 ▼3.13 |
Dashboard /wp-admin | 2,200 ▲12 | 5.83 ▲0.91 | 105.62 ▼5.28 | 41.49 ▲0.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 39.89 ▲2.98 | 34.85 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.11 ▲0.12 | 662.57 ▼20.13 | 55.31 ▲3.86 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.09 ▲0.00 | 99.76 ▼16.58 | 43.40 ▼6.33 |
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
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_cresta_image_in_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cresta-image-in-widget/cresta-image-in-widget.php:13
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Cresta Image In Widget Settings), #2 (Cresta Image In Widget Example in a post)
cresta-image-in-widget/cresta-image-in-widget.php Passed 13 tests
The entry point to "Cresta Image In Widget" version 1.0.3 is a PHP file that has certain tags in its header comment area
76 characters long description:
Simple plugin to show an image, photo or logo in a widget with text and link
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
Everything looks great! No dangerous files found in this plugin234 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 11 | 196 |
JavaScript | 1 | 0 | 0 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.11MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/default-image.png | 1.34KB | 1.38KB | 0.00% |
screenshot-1.png | 15.87KB | 15.94KB | 0.00% |
screenshot-2.png | 91.37KB | 98.40KB | 0.00% |