84% links-with-icons-widget

Code Review | Links With Icons Widget

WordPress plugin Links With Icons Widget scored84%from 54 tests.

About plugin

  • Plugin page: links-with-icons-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2013
  • Latest release: Jan 20, 2016
  • Number of updates: 68
  • Update frequency: every 12.4 days
  • Top authors: ethanpil (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /32,235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.59ms] Passed 4 tests

Analyzing server-side resources used by Links With Icons Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.07 ▲0.05
Dashboard /wp-admin3.35 ▼0.0048.37 ▼8.45
Posts /wp-admin/edit.php3.40 ▲0.0446.19 ▼7.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.19 ▼22.83
Media Library /wp-admin/upload.php3.27 ▲0.0437.14 ▲0.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_wlwi
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Links With Icons Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.064.91 ▲3.1142.84 ▲0.53
Dashboard /wp-admin2,203 ▲155.85 ▼0.05112.20 ▲1.5447.48 ▲8.28
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0145.16 ▼16.7438.22 ▼19.55
Add New Post /wp-admin/post-new.php1,526 ▲621.26 ▲0.17709.00 ▲75.3563.95 ▲17.52
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.13109.80 ▼11.6158.70 ▲14.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_wlwi

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/links-with-icons-widget/links-with-icons-widget.php:10

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

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Managing links inside the widget), #2 (Example Widget Output)
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

links-with-icons-widget/links-with-icons-widget.php Passed 13 tests

The main PHP file in "Links With Icons Widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
A widget that lists links with icons.

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 plugin234 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14018175
JavaScript113858
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin