84% icon-widget

Code Review | Icon Widget

WordPress plugin Icon Widget scored84%from 54 tests.

About plugin

  • Plugin page: icon-widget
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Jan 3, 2023
  • Number of updates: 33
  • Update frequency: every 58.8 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

8,000+ active /84,680 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: ▼4.42ms] Passed 4 tests

Server-side resources used by Icon Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.15 ▲0.43
Dashboard /wp-admin3.34 ▲0.0346.06 ▼0.85
Posts /wp-admin/edit.php3.45 ▲0.0944.90 ▼2.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.25 ▼14.08
Media Library /wp-admin/upload.php3.26 ▲0.0334.08 ▼0.67
Icon Widget /wp-admin/options-general.php?page=icon_widget3.2231.56

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
widget_icon-widget

Browser metrics Passed 4 tests

A check of browser resources used by Icon Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.161.74 ▼0.1544.07 ▲3.28
Dashboard /wp-admin2,204 ▲135.77 ▼0.11100.06 ▲2.3937.81 ▼6.42
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0433.66 ▼2.2333.17 ▼2.09
Add New Post /wp-admin/post-new.php1,516 ▼1717.45 ▼5.73605.74 ▼76.4052.62 ▼4.73
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0796.86 ▼6.2841.44 ▼3.98
Icon Widget /wp-admin/options-general.php?page=icon_widget8072.0323.3824.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_icon-widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Settings.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Shortcode.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Container' not found in wp-content/plugins/icon-widget/src/Plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/icon-widget/src/Widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Enqueue.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Textdomain.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\IconWidget\\Service' not found in wp-content/plugins/icon-widget/src/Hooks.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: widget, fontawesome, icon

icon-widget/icon-widget.php Passed 13 tests

"Icon Widget" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Displays an icon widget with a title and description.

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
Good job! No executable or dangerous file extensions detected21,222 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
SVG821817,736
PHP181443203,475
CSS82488
JavaScript21163

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.18
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes111.11%
Methods29
▷ Static methods310.34%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin