10% jamie-social-icons

Code Review | Jamie Social Icons

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

About plugin

  • Plugin page: jamie-social-icons
  • Plugin version: 0.9.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2012
  • Latest release: Apr 2, 2013
  • Number of updates: 64
  • Update frequency: every 6.0 days
  • Top authors: martiniboy (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 37,280 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/jamie-social-icons/inc/showpost.php+2
    Trying to access array offset on value of type bool

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

An overview of server-side resources used by Jamie Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.78 ▼35.18
Dashboard /wp-admin2.05 ▼1.267.46 ▼39.67
Posts /wp-admin/edit.php2.05 ▼1.316.67 ▼38.31
Add New Post /wp-admin/post-new.php2.05 ▼3.846.22 ▼83.21
Media Library /wp-admin/upload.php2.05 ▼1.187.07 ▼26.61
Social Settings /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php2.056.53

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jamie Social Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲24319.08 ▲4.5224.49 ▲22.4637.02 ▼13.40
Dashboard /wp-admin2,273 ▲857.91 ▲2.01165.82 ▲53.0038.45 ▼4.65
Posts /wp-admin/edit.php2,178 ▲895.48 ▲3.4698.87 ▲62.6259.11 ▲26.27
Add New Post /wp-admin/post-new.php6,596 ▲5,06327.72 ▲4.491,059.28 ▲386.9337.65 ▼26.03
Media Library /wp-admin/upload.php1,469 ▲817.11 ▲2.83164.73 ▲50.6445.11 ▼2.91
Social Settings /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php1,6538.48194.7568.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/jamie-social-icons/inc/showpost.php+2
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 46 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
    • > Notice in wp-content/plugins/jamie-social-icons/jamie-social_icons.php+156
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/jamie-social-icons/admin/jamiesocial_analytics.php
  • 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jamie-social-icons/jamie-social_icons.php:39
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/jamie-social-icons/locale/locale.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jamie-social-icons/social-admin.php:2
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jamie-social-icons/admin/jamiesocial_icontext.php on line 1
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/jamie-social-icons/inc/showpost.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jamie-social-icons/admin/jamiesocial_insights.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jamie-social-icons/admin/jamiesocial_posttype.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/jamie-social-icons/inc/showpage.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=jamie-social-icons/social-admin.php
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === jamie-social-icons === )
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
The official readme.txt might help

jamie-social-icons/jamie-social_icons.php 85% from 13 tests

Analyzing the main PHP file in "Jamie Social Icons" version 0.9.8.3
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jamie-social-icons.php" instead of "jamie-social_icons.php")
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin753 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448184574
JavaScript41868102
CSS21277

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
share-balloon.png3.31KB0.87KB▼ 73.63%
screenshot-3.png55.75KB21.58KB▼ 61.29%
inc/images/share-balloon.png3.31KB0.87KB▼ 73.63%
screenshot-5.png12.38KB5.64KB▼ 54.46%
screenshot-4.png34.69KB14.38KB▼ 58.55%