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.00MB] [CPU: ▼308.28ms] Passed 4 tests
Server-side resources used by Image & Text Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 50.89 ▼0.16 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.67 ▲0.34 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.54 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 92.67 ▼1,232.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 27.59 ▲2.39 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options |
---|
image_text_widget_version |
widget_image_text_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Image & Text Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 15.12 ▼0.88 | 6.27 ▼1.54 | 2.92 ▲0.11 |
Dashboard /wp-admin | 2,895 ▲37 | 6.07 ▼0.22 | 115.77 ▼15.08 | 153.68 ▼13.58 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.25 ▲0.01 | 64.19 ▼2.30 | 146.72 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.59 ▲5.89 | 460.06 ▲42.22 | 156.84 ▲3.47 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.05 | 157.55 ▲14.80 | 194.78 ▲2.98 |
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
- The uninstall procedure has failed, leaving 1 option in the database
- widget_image_text_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: upload, images, responsive, uploader, widget-only...
image-text-widget/image-text-widget.php Passed 13 tests
The entry point to "Image & Text Widget" version 1.0.3 is a PHP file that has certain tags in its header comment area
131 characters long description:
Image & Text Widget is an easy to use plugin that uses the native WordPress media manager to add image & text widgets to your site.
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
No dangerous file extensions were detected603 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 54 | 350 |
PO File | 2 | 227 | 525 | 156 |
JavaScript | 1 | 16 | 0 | 74 |
CSS | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 9.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 are no PNG files in this plugin