84% social-icons-lite

Code Review | Social Icons Lite

WordPress plugin Social Icons Lite scored84%from 54 tests.

About plugin

  • Plugin page: social-icons-lite
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 31, 2017
  • Latest release: Feb 23, 2018
  • Number of updates: 7
  • Update frequency: every 16.6 days
  • Top authors: themeegg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.38ms] Passed 4 tests

An overview of server-side resources used by Social Icons Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.27 ▲0.82
Dashboard /wp-admin3.40 ▲0.0646.35 ▼9.40
Posts /wp-admin/edit.php3.45 ▲0.1049.80 ▼0.70
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.25 ▼16.22
Media Library /wp-admin/upload.php3.32 ▲0.1034.85 ▲1.80

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_social-icons-lite
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Social Icons Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.33 ▼1.232.60 ▲0.8439.29 ▼1.33
Dashboard /wp-admin2,206 ▲235.91 ▲0.88113.06 ▲4.0441.68 ▲1.02
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0438.40 ▼1.5236.56 ▲0.30
Add New Post /wp-admin/post-new.php1,514 ▼2217.57 ▼5.61655.33 ▲51.1256.37 ▲3.90
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0397.16 ▲1.1945.85 ▲1.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_social-icons-lite
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/social-icons-lite/social-icons-lite.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === social-icons-lite === )
You can take inspiration from this readme.txt

social-icons-lite/social-icons-lite.php Passed 13 tests

The main PHP script in "Social Icons Lite" version 1.0.3 is automatically included on every request by WordPress
45 characters long description:
Lightweight social icons Widget for WordPress

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
There were no executable files found in this plugin708 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP410699361
JavaScript1023186
SVG10092
CSS111069

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin