83% about-us-widget

Code Review | About Us Widget

WordPress plugin About Us Widget scored 83% from 54 tests.

About plugin

  • Plugin page: about-us-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.2
  • WordPress version: 5.9.2
  • First release: Mar 24, 2016
  • Latest release: Jun 8, 2016
  • Number of updates: 14
  • Update frequency: every 5.4 days
  • Top authors: fervillz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 6,391 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼319.26ms] Passed 4 tests

An overview of server-side resources used by About Us Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1159.06 ▲10.49
Dashboard /wp-admin3.45 ▲0.0432.60 ▼1.24
Posts /wp-admin/edit.php3.68 ▲0.0436.68 ▼2.16
Add New Post /wp-admin/post-new.php6.93 ▼0.0497.19 ▼1,266.40
Media Library /wp-admin/upload.php3.34 ▲0.0324.17 ▼7.23

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_auw_widget

Browser metrics Passed 4 tests

About Us Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲4515.86 ▲0.176.27 ▼0.032.13 ▼0.05
Dashboard /wp-admin2,897 ▲366.08 ▼0.09117.40 ▼18.41154.31 ▼5.20
Posts /wp-admin/edit.php2,690 ▲23.24 ▲0.0061.35 ▼3.54139.68 ▼6.11
Add New Post /wp-admin/post-new.php1,663 ▼11016.41 ▼4.94407.80 ▼68.95152.63 ▼1.10
Media Library /wp-admin/upload.php1,700 ▲25.47 ▼0.00139.02 ▲2.86183.43 ▼7.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_auw_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/about-us-widget/widgets/widget-about.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 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: about, easy, simple, widget

about-us-widget/auw.php 77% from 13 tests

The entry point to "About Us Widget" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("about-us-widget.php" instead of "auw.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 188 characters long)

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
Success! There were no dangerous files found in this plugin169 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28183136
CSS24033

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.42MB with 0.27MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png432.95KB158.25KB▼ 63.45%