78% social-header-meta

Code Review | Social Header Meta

WordPress plugin Social Header Meta scored78%from 54 tests.

About plugin

  • Plugin page: social-header-meta
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Sep 25, 2013
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: landykos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,213 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.10ms] Passed 4 tests

This is a short check of server-side resources used by Social Header Meta
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.18 ▲1.50
Dashboard /wp-admin3.33 ▼0.0144.63 ▼15.93
Posts /wp-admin/edit.php3.38 ▲0.0347.72 ▼1.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.70 ▼19.05
Media Library /wp-admin/upload.php3.25 ▲0.0334.51 ▼0.08
Social Header Meta /wp-admin/options-general.php?page=social-header-meta-admin3.2029.55

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Social Header Meta: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.441.93 ▲0.2038.96 ▼2.93
Dashboard /wp-admin2,210 ▲255.80 ▲0.9394.50 ▼19.8137.36 ▼4.41
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0138.69 ▲3.3334.38 ▼1.67
Add New Post /wp-admin/post-new.php1,538 ▼423.16 ▲5.05597.95 ▼42.8952.74 ▲2.36
Media Library /wp-admin/upload.php1,386 ▼54.28 ▲0.0995.82 ▼2.9842.39 ▼0.04
Social Header Meta /wp-admin/options-general.php?page=social-header-meta-admin7892.0623.9836.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=social-header-meta-admin
    • > 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=social-header-meta-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=social-header-meta-admin
    • > Notice in wp-content/plugins/social-header-meta/social-header.php+193
    Trying to access array offset on value of type bool

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-header-meta/social-header.php:51

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

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === social-header-meta === )
  • Screenshots: A description for screenshot #1 is missing in social-header-meta/assets to your readme.txt
You can look at the official readme.txt

social-header-meta/social-header.php 92% from 13 tests

The main file in "Social Header Meta" v. 4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("social-header-meta.php" instead of "social-header.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12057125

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin