62% accesspress-social-icons

Code Review | AccessPress Social Icons

WordPress plugin AccessPress Social Icons scored 62% from 54 tests.

About plugin

  • Plugin page: accesspress-socia...
  • Plugin version: 1.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Nov 18, 2014
  • Latest release: Jan 28, 2022
  • Number of updates: 125
  • Update frequency: every 21.0 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

30,000+ active / 1,205,071 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼296.83ms] Passed 4 tests

This is a short check of server-side resources used by AccessPress Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1958.46 ▲2.00
Dashboard /wp-admin3.58 ▲0.1642.35 ▲3.09
Posts /wp-admin/edit.php3.81 ▲0.1648.71 ▲5.06
Add New Post /wp-admin/post-new.php7.02 ▲0.05101.04 ▼1,195.12
Media Library /wp-admin/upload.php3.44 ▲0.1430.88 ▲2.72
About /wp-admin/admin.php?page=aps-about3.4629.41
Add New Set /wp-admin/admin.php?page=aps-social-add3.5031.57
How to use /wp-admin/admin.php?page=aps-social-how-to-use3.4532.18
Social Icons /wp-admin/admin.php?page=aps-social3.4632.04
Check Premium Version /wp-admin/admin.php?page=aps-premium3.2420.37
Documentation /wp-admin/admin.php?page=aps-doclinks3.2428.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 312 new files
Database: 1 new table, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AccessPress Social Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,158 ▲41417.84 ▲2.209.61 ▲3.562.72 ▲0.44
Dashboard /wp-admin3,145 ▲2878.05 ▲1.85139.12 ▼1.39173.63 ▲7.89
Posts /wp-admin/edit.php2,970 ▲2825.12 ▲1.7677.32 ▲12.77158.78 ▲14.35
Add New Post /wp-admin/post-new.php1,704 ▲1520.42 ▼1.03385.58 ▼56.08211.38 ▲45.40
Media Library /wp-admin/upload.php1,758 ▲605.51 ▲0.04117.63 ▼19.41209.65 ▲16.48
About /wp-admin/admin.php?page=aps-about1,88910.71211.22178.88
Add New Set /wp-admin/admin.php?page=aps-social-add3,8207.43159.74124.66
How to use /wp-admin/admin.php?page=aps-social-how-to-use1,6246.27108.17129.76
Social Icons /wp-admin/admin.php?page=aps-social1,6436.17106.47128.78
Check Premium Version /wp-admin/admin.php?page=aps-premium2,85214.57558.44274.19
Documentation /wp-admin/admin.php?page=aps-doclinks1,4308.38329.15212.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_aps_social_icons
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_apsi_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/theme-icon-set.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/how-to-use.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/main-page.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/activation.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/icon-adder.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/delete-icon-set.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/edit-icon-set.php
    • > /wp-content/plugins/accesspress-social-icons/inc/frontend/icon-group-list.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/panel-head.php
    • > /wp-content/plugins/accesspress-social-icons/inc/backend/save-set.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accesspress-social-icons/inc/backend/promobar.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=aps-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aps-doclinks
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=aps-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/accesspress-social-icons/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


Plugin configuration 97% from 29 tests

readme.txt 94% 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 your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

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

The main PHP file in "AccessPress Social Icons" ver. 1.8.4 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin6,048 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File18597188

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.00
▷ Minimum class complexity9.00
▷ Maximum class complexity57.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
268 PNG files occupy 3.64MB with 2.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-sets/png/set12/reddit.png23.58KB5.00KB▼ 78.80%
icon-sets/png/set7/askfm.png3.61KB2.11KB▼ 41.52%
icon-sets/png/set6/meetup.png16.33KB1.70KB▼ 89.59%
icon-sets/png/set5/flickr.png15.95KB1.93KB▼ 87.89%
icon-sets/png/set2/meetup.png6.68KB3.76KB▼ 43.70%