83% social-media-icons-wp

Code Review | Social Media Icons Wp

WordPress plugin Social Media Icons Wp scored83%from 54 tests.

About plugin

  • Plugin page: social-media-icon...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 7
  • Update frequency: every 4.7 days
  • Top authors: nirikshapatel05 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by Social Media Icons Wp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1941.02 ▼0.42
Dashboard /wp-admin3.52 ▲0.2150.41 ▼2.71
Posts /wp-admin/edit.php3.63 ▲0.2755.43 ▲4.96
Add New Post /wp-admin/post-new.php6.10 ▲0.2190.50 ▼13.35
Media Library /wp-admin/upload.php3.42 ▲0.1943.70 ▲4.69
Add New /wp-admin/post-new.php?post_type=social_media_icon3.6050.58
All Social Media Icons /wp-admin/edit.php?post_type=social_media_icon3.4951.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Social Media Icons Wp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲22515.12 ▲0.741.69 ▼0.1443.77 ▼6.87
Dashboard /wp-admin2,388 ▲2116.43 ▲0.79126.34 ▲33.8842.81 ▼0.03
Posts /wp-admin/edit.php2,316 ▲2163.62 ▲1.6452.27 ▲12.9230.78 ▼1.70
Add New Post /wp-admin/post-new.php1,728 ▲20222.94 ▼0.09640.74 ▼65.7635.92 ▼30.87
Media Library /wp-admin/upload.php1,450 ▲474.36 ▲0.2482.63 ▼26.6845.75 ▲0.44
Add New /wp-admin/post-new.php?post_type=social_media_icon3,6115.26125.4754.37
All Social Media Icons /wp-admin/edit.php?post_type=social_media_icon1,2883.5347.1327.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-posttype.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-scripts.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-postlist.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons-wp.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-metabox.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/social-media-icons.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-support.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons-shortcode.php
    • > /wp-content/plugins/social-media-icons-wp/social-media-icons/classes/class-social-media-icons.php

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

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

social-media-icons-wp/social-media-icons-wp.php 85% from 13 tests

The entry point to "Social Media Icons Wp" version 0.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)

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 detected1,606 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1079380832
CSS3926538
JavaScript13327236

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.33
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods2295.65%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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