80% ah-about-widget

Code Review | AH About Widget

WordPress plugin AH About Widget scored80%from 54 tests.

About plugin

  • Plugin page: ah-about-widget
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Sep 23, 2017
  • Number of updates: 20
  • Update frequency: every 12.3 days
  • Top authors: AHecht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,766 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.68MB] [CPU: ▼49.63ms] Passed 4 tests

An overview of server-side resources used by AH About Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.59 ▼1.1412.45 ▼35.09
Dashboard /wp-admin2.60 ▼0.9615.91 ▼42.29
Posts /wp-admin/edit.php2.61 ▼1.0714.11 ▼40.86
Add New Post /wp-admin/post-new.php2.60 ▼3.5413.67 ▼80.27
Media Library /wp-admin/upload.php2.60 ▼0.8818.83 ▼20.40

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: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_user-profile

Browser metrics Passed 4 tests

Checking browser requirements for AH About Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.191.83 ▼0.0141.08 ▲1.18
Dashboard /wp-admin2,192 ▲155.55 ▼0.0884.58 ▼11.4541.20 ▼2.33
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0336.80 ▲0.4832.02 ▼4.70
Add New Post /wp-admin/post-new.php1,546 ▲2023.27 ▲5.75657.72 ▼84.4453.55 ▼1.49
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0297.35 ▼7.2542.69 ▼3.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in AH_About_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_user-profile
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: about me widget, about me, widget, about, user profile widget...

ah-about-widget/ah-about-widget.php 92% from 13 tests

The entry point to "AH About Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected247 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14349113
PO File1232483
CSS11351

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG images were found in this plugin