73% social-media-seo

Code Review | Social Media SEO

WordPress plugin Social Media SEO scored73%from 54 tests.

About plugin

  • Plugin page: social-media-seo
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Feb 13, 2014
  • Number of updates: 4
  • Update frequency: every 7.3 days
  • Top authors: ivan9146 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /819 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.33MB] [CPU: ▼17.54ms] Passed 4 tests

A check of server-side resources used by Social Media SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.25 ▲2.99
Dashboard /wp-admin3.31 ▼0.0444.79 ▼10.71
Posts /wp-admin/edit.php3.36 ▲0.0041.15 ▼5.95
Add New Post /wp-admin/post-new.php4.60 ▼1.2941.70 ▼55.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▲1.91
Social Media SEO /wp-admin/options-general.php?page=wp_btnmenu3.17168.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
recovery_mode_email_last_sent
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Social Media SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12815.28 ▲0.9159.25 ▲57.5637.04 ▼3.35
Dashboard /wp-admin2,207 ▲165.81 ▲0.9496.02 ▼4.1137.15 ▼3.87
Posts /wp-admin/edit.php2,093 ▲42.16 ▲0.1138.94 ▲0.5134.76 ▲1.20
Add New Post /wp-admin/post-new.php106 ▼1,4272.74 ▼20.3664.45 ▼612.279.54 ▼46.96
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.02115.65 ▲15.1288.17 ▲44.79
Social Media SEO /wp-admin/options-general.php?page=wp_btnmenu9706.55147.4523.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+56
    Only variables should be passed by reference
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+58
    Trying to get property 'total_count' of non-object
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+59
    Trying to get property 'like_count' of non-object
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+60
    Trying to get property 'comment_count' of non-object
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+61
    Trying to get property 'share_count' of non-object
    • > GET request to /wp-admin/options-general.php?page=wp_btnmenu
    • > Notice in wp-content/plugins/social-media-seo/social-media-seo.php+62
    Trying to get property 'click_count' of non-object

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-seo/social-media-seo.php:12

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=wp_btnmenu
    • > Network (severe)
    https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9329069495351013&output=html&h=90&slotname=1719102769&adk=291153631&adf=454517614&pi=t.ma~as.1719102769&w=728&lmt=1696914954&format=728x90&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp_btnmenu&ea=0&wgl=1&dt=1696914954067&bpp=4&bdt=255&idt=312&shv=r20231004&mjsv=m202310020101&ptt=9&saldr=aa&abxe=1&correlator=3556904914917&frm=20&pv=2&ga_vid=1582411468.1696914954&ga_sid=1696914954&ga_hid=1972865313&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=64&ady=278&biw=800&bih=600&scr_x=0&scr_y=0&eid=44759837%2C44759875%2C44759926%2C31077327%2C42532335%2C44795922%2C44804782%2C44803791&oid=2&pvsid=1993977605672540&tmod=1848317822&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeE%7C&abl=NS&pfx=0&fu=0&bc=23&ifi=1&uci=a!1&fsb=1&dtd=334 - Failed to load resource: the server responded with a status of 400 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: "Plugin Name" should be replaced with the name of your plugin on the first line ( === social-media-seo === )
You can look at the official readme.txt

social-media-seo/social-media-seo.php Passed 13 tests

The entry point to "Social Media SEO" version 1.2 is a PHP file that has certain tags in its header comment area
79 characters long description:
All the tools to help improve positioning and monitoring of your wordpress blog

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 detected102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13343102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin