10% lowermedia-wp-social

Code Review | LowerMedia WP Social

WordPress plugin LowerMedia WP Social scored 10% from 54 tests.

About plugin

  • Plugin page: lowermedia-wp-social
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 10, 2013
  • Latest release: Aug 16, 2013
  • Number of updates: 16
  • Update frequency: every 6.1 days
  • Top authors: hawkeye126 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,719 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/lowermedia-wp-social/lowermedia-wp-social.php+624
    Methods with the same name as their class will not be constructors in a future version of PHP; SocialMediaIcons has a deprecated constructor

Server metrics [RAM: ▼1.65MB] [CPU: ▼54.81ms] Passed 4 tests

A check of server-side resources used by LowerMedia WP Social
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.124.67 ▼42.60
Dashboard /wp-admin2.36 ▼0.955.91 ▼41.87
Posts /wp-admin/edit.php2.36 ▼1.005.73 ▼45.13
Add New Post /wp-admin/post-new.php2.36 ▼3.536.07 ▼89.64
Media Library /wp-admin/upload.php2.36 ▼0.876.53 ▼28.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_socialmediaicons
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LowerMedia WP Social
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.21 ▼1.455.07 ▲3.0839.80 ▼2.00
Dashboard /wp-admin2,218 ▲335.86 ▲0.8298.20 ▼12.0192.00 ▲48.08
Posts /wp-admin/edit.php2,110 ▲212.02 ▲0.0035.04 ▼1.1133.38 ▲0.46
Add New Post /wp-admin/post-new.php1,536 ▲2223.21 ▲5.82694.33 ▲51.8979.25 ▲8.81
Media Library /wp-admin/upload.php1,403 ▲154.24 ▼0.04101.25 ▼1.1479.12 ▲35.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/lowermedia-wp-social/lowermedia-wp-social.php+624
    Methods with the same name as their class will not be constructors in a future version of PHP; SocialMediaIcons has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_socialmediaicons
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lowermedia-wp-social/lowermedia-wp-social.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === lowermedia-wp-social === )
The official readme.txt might help

lowermedia-wp-social/lowermedia-wp-social.php Passed 13 tests

The primary PHP file in "LowerMedia WP Social" version 3.0.3 is used by WordPress to initiate all plugin functionality
136 characters long description:
Social Media Toolbar Made Easy! Creates widget and widget area to display social media profile links at the top or left of your website.

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
Success! There were no dangerous files found in this plugin1,127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP112290975
CSS1263121
Markdown121031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity34.00
▷ Minimum class complexity25.00
▷ Maximum class complexity43.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
17 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/bandcamp.png1.17KB0.92KB▼ 21.63%
icons/blogger.png2.33KB1.46KB▼ 37.12%
icons/twitter.png4.31KB1.72KB▼ 60.15%
icons/instagram.png32.96KB10.07KB▼ 69.44%
icons/rss.png4.55KB1.38KB▼ 69.69%