100% widget-in-content

Code Review | Widget in Content

WordPress plugin Widget in Content scored 100% from 54 tests.

About plugin

  • Plugin page: widget-in-content
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5
  • WordPress version: 5.9.2
  • First release: Jun 23, 2018
  • Latest release: Oct 2, 2020
  • Number of updates: 8
  • Update frequency: every 136.1 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 725 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0757.49 ▲7.14
Dashboard /wp-admin3.48 ▲0.0833.90 ▲0.44
Posts /wp-admin/edit.php3.71 ▲0.0738.85 ▲3.93
Add New Post /wp-admin/post-new.php6.95 ▼0.0295.33 ▼1,177.84
Media Library /wp-admin/upload.php3.36 ▲0.0726.79 ▲2.54
Widgets /wp-admin/widgets.php5.2753.76
Menus /wp-admin/nav-menus.php3.7431.17
Widget in Content /wp-admin/options-general.php?page=widget_in_content3.3323.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲6615.81 ▲0.166.18 ▲0.263.21 ▲0.28
Dashboard /wp-admin2,907 ▲466.06 ▼0.19117.29 ▼19.85159.49 ▼3.71
Posts /wp-admin/edit.php2,706 ▲213.24 ▲0.0161.95 ▼7.90141.43 ▼0.34
Add New Post /wp-admin/post-new.php1,761 ▲10021.66 ▲6.07463.06 ▲30.08161.53 ▲3.96
Media Library /wp-admin/upload.php1,716 ▲185.47 ▼0.07145.13 ▼4.53189.53 ▲3.45
Widgets /wp-admin/widgets.php2,55423.74537.58128.44
Menus /wp-admin/nav-menus.php2,2523.2980.16133.55
Widget in Content /wp-admin/options-general.php?page=widget_in_content1,0592.4053.19125.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:
LanguageFilesBlank linesComment linesLines of code
PHP33271195
PO File1181855
CSS1031

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 code0.28
Average class complexity12.67
▷ Minimum class complexity4.00
▷ Maximum class complexity21.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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