90% about-me-image-widget

Code Review | About Me Image Widget by Angie Makes

WordPress plugin About Me Image Widget by Angie Makes scored90%from 54 tests.

About plugin

  • Plugin page: about-me-image-wi...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.7.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: May 10, 2017
  • Number of updates: 11
  • Update frequency: every 57.6 days
  • Top authors: cbaldelomar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /9,634 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
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.45ms] Passed 4 tests

An overview of server-side resources used by About Me Image Widget by Angie Makes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.32 ▼4.77
Dashboard /wp-admin3.32 ▼0.0347.29 ▼21.79
Posts /wp-admin/edit.php3.37 ▲0.0150.99 ▼0.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.30 ▼22.53
Media Library /wp-admin/upload.php3.24 ▲0.0137.18 ▲3.28

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
widget_wpc_about_me_image
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for About Me Image Widget by Angie Makes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.101.67 ▼0.0240.04 ▼5.71
Dashboard /wp-admin2,198 ▲215.58 ▼0.0895.60 ▲1.2041.56 ▼0.60
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0238.82 ▼1.4234.50 ▼4.23
Add New Post /wp-admin/post-new.php1,530 ▼823.29 ▲0.11655.10 ▼37.9552.92 ▲0.21
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.01102.36 ▼11.3940.14 ▼4.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_wpc_about_me_image
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: image widget, about me image, about me, about me image widget

about-me-image-widget/about-me-image-widget.php Passed 13 tests

The main PHP file in "About Me Image Widget by Angie Makes" ver. 1.4.3 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Add "About Me" image widget, with caption and link, to any widget area.

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
There were no executable files found in this plugin330 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13019150
PHP22910138
Markdown115025
CSS12017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity14.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 functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected