90% super-include-widget

Code Review | Super Include Widget

WordPress plugin Super Include Widget scored 90% from 54 tests.

About plugin

  • Plugin page: super-include-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.4.2
  • WordPress version: 5.8.1
  • First release: Jul 20, 2016
  • Latest release: Jul 14, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: devgurjeet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 387 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼136.96ms] Passed 4 tests

This is a short check of server-side resources used by Super Include Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.53 ▲9.64
Dashboard /wp-admin3.08 ▲0.0252.16 ▲9.14
Posts /wp-admin/edit.php3.13 ▲0.0246.62 ▲2.17
Add New Post /wp-admin/post-new.php5.43 ▲0.0089.02 ▼560.82
Media Library /wp-admin/upload.php3.02 ▲0.0233.45 ▲1.67

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_si_widget

Browser metrics Passed 4 tests

Super Include Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.84 ▲0.298.69 ▼0.9747.47 ▼2.98
Dashboard /wp-admin2,967 ▲365.88 ▼0.05137.84 ▼0.95112.43 ▼0.52
Posts /wp-admin/edit.php2,739 ▼02.81 ▲0.1264.38 ▼0.7887.22 ▼3.90
Add New Post /wp-admin/post-new.php1,672 ▲17218.81 ▲0.18366.32 ▼0.07104.00 ▼5.12
Media Library /wp-admin/upload.php1,736 ▼744.99 ▼0.03147.98 ▼17.84113.19 ▼4.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_si_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: php, html, google analytics, external file, widget

super-include-widget/si-widget.php 92% from 13 tests

The principal PHP file in "Super Include Widget" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-include-widget.php" instead of "si-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1242144

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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