Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼292.73ms] Passed 4 tests
This is a short check of server-side resources used by Widget in Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 57.49 ▲7.14 |
Dashboard /wp-admin | 3.48 ▲0.08 | 33.90 ▲0.44 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.85 ▲3.93 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 95.33 ▼1,177.84 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 26.79 ▲2.54 |
Widgets /wp-admin/widgets.php | 5.27 | 53.76 |
Menus /wp-admin/nav-menus.php | 3.74 | 31.17 |
Widget in Content /wp-admin/options-general.php?page=widget_in_content | 3.33 | 23.34 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_in_content_options |
Browser metrics Passed 4 tests
A check of browser resources used by Widget in Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲66 | 15.81 ▲0.16 | 6.18 ▲0.26 | 3.21 ▲0.28 |
Dashboard /wp-admin | 2,907 ▲46 | 6.06 ▼0.19 | 117.29 ▼19.85 | 159.49 ▼3.71 |
Posts /wp-admin/edit.php | 2,706 ▲21 | 3.24 ▲0.01 | 61.95 ▼7.90 | 141.43 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,761 ▲100 | 21.66 ▲6.07 | 463.06 ▲30.08 | 161.53 ▲3.96 |
Media Library /wp-admin/upload.php | 1,716 ▲18 | 5.47 ▼0.07 | 145.13 ▼4.53 | 189.53 ▲3.45 |
Widgets /wp-admin/widgets.php | 2,554 | 23.74 | 537.58 | 128.44 |
Menus /wp-admin/nav-menus.php | 2,252 | 3.29 | 80.16 | 133.55 |
Widget in Content /wp-admin/options-general.php?page=widget_in_content | 1,059 | 2.40 | 53.19 | 125.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: content, ads, adsense, widget
widget-in-content/widget-in-content.php Passed 13 tests
The main file in "Widget in Content" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Insert the widget area in the content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin251 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 32 | 71 | 195 |
PO File | 1 | 18 | 18 | 55 |
CSS | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 18 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected