10% appreplica-social-icons

Code Review | Appreplica Social Icons

WordPress plugin Appreplica Social Icons scored 10% from 54 tests.

About plugin

  • Plugin page: appreplica-social...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2015
  • Latest release: Jan 15, 2020
  • Number of updates: 28
  • Update frequency: every 57.1 days
  • Top authors: appreplica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,022 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/appreplica-social-icons/appreplica-social-icons.php+217
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼64.17ms] Passed 4 tests

Server-side resources used by Appreplica Social Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.44 ▼37.11
Dashboard /wp-admin2.05 ▼1.265.93 ▼38.40
Posts /wp-admin/edit.php2.05 ▼1.316.31 ▼70.89
Add New Post /wp-admin/post-new.php2.05 ▼3.845.15 ▼110.29
Media Library /wp-admin/upload.php2.05 ▼1.184.92 ▼27.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 73 new files
Database: 1 new table, 7 new options
New tables
wp_appreplica_social_icons
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_appreplicaicons_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Appreplica Social Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,055 ▲29815.26 ▲0.855.69 ▲3.3145.39 ▼4.36
Dashboard /wp-admin2,373 ▲1856.73 ▲0.83135.54 ▲15.0941.91 ▼1.54
Posts /wp-admin/edit.php2,273 ▲1843.62 ▲1.5548.27 ▼26.4335.33 ▼30.66
Add New Post /wp-admin/post-new.php1,534 ▼823.60 ▲5.28652.53 ▲20.8537.42 ▼13.66
Media Library /wp-admin/upload.php1,412 ▲304.36 ▲0.18100.81 ▼0.9049.51 ▼0.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the appreplicaicons-font-awesome handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables detected upon uninstall: 1 table
    • wp_appreplica_social_icons
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_appreplicaicons_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/appreplica-social-icons/appreplica-social-icons.php
    • > /wp-content/plugins/appreplica-social-icons/appreplica-social-icons-list.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
Please fix the following attributes:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

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

The primary PHP file in "Appreplica Social Icons" version 1.2 is used by WordPress to initiate all plugin functionality
62 characters long description:
Appreplica Social Icons - add your favorite social media links

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected940 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP222559940

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
70 PNG files occupy 1.69MB with 1.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/1/linkedin.png17.27KB6.89KB▼ 60.12%
icons/2/podcast.png32.42KB11.49KB▼ 64.57%
icons/3/linkedin.png18.85KB7.32KB▼ 61.15%
icons/3/500px.png26.54KB9.98KB▼ 62.40%
icons/1/instagram.png23.95KB9.58KB▼ 59.98%