74% social-link-look

Code Review | Social Link Look

WordPress plugin Social Link Look scored74%from 54 tests.

About plugin

  • Plugin page: social-link-look
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: May 20, 2020
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: skebby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /399 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼22.65ms] Passed 4 tests

Server-side resources used by Social Link Look
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0633.22 ▼7.91
Dashboard /wp-admin3.07 ▼0.2328.76 ▼22.56
Posts /wp-admin/edit.php3.21 ▼0.1432.42 ▼22.03
Add New Post /wp-admin/post-new.php5.45 ▼0.4367.72 ▼37.29
Media Library /wp-admin/upload.php3.16 ▼0.0729.26 ▼8.71

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_sll_options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Social Link Look
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.30 ▼1.061.86 ▲0.1340.88 ▼4.68
Dashboard /wp-admin2,221 ▲335.90 ▲0.99103.15 ▼3.5172.92 ▲28.90
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0834.53 ▼8.0534.64 ▲0.90
Add New Post /wp-admin/post-new.php1,536 ▲318.25 ▼4.95635.89 ▲8.8773.42 ▲20.52
Media Library /wp-admin/upload.php1,403 ▲154.15 ▼0.10100.23 ▲2.9348.51 ▲6.41

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
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sll_options
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-link-look/social-link-look.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI ("www.paypal.me/sebastianoriva")
You can take inspiration from this readme.txt

social-link-look/social-link-look.php Passed 13 tests

"Social Link Look" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Easy and lightweight plugin to change your social meta tags.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin543 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP313110454
CSS114164
JavaScript211625

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sll-menu-icon.png0.77KB0.72KB▼ 6.57%
assets/images/sll-icon.png3.68KB1.71KB▼ 53.61%