84% social-network-links-by-gol-li

Code Review | Social Network Links by gol.li

WordPress plugin Social Network Links by gol.li scored84%from 54 tests.

About plugin

  • Plugin page: social-network-li...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Jun 12, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dneustadt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼5.33ms] Passed 4 tests

An overview of server-side resources used by Social Network Links by gol.li
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.35 ▼7.13
Dashboard /wp-admin3.34 ▼0.0148.01 ▼17.46
Posts /wp-admin/edit.php3.39 ▲0.0351.39 ▲2.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.60 ▲0.49
Media Library /wp-admin/upload.php3.26 ▲0.0338.55 ▲4.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_dne_gollishare
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Network Links by gol.li
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.56 ▼0.581.81 ▲0.1042.57 ▼1.05
Dashboard /wp-admin2,221 ▲214.93 ▲0.04125.60 ▲17.8358.38 ▲14.05
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0239.37 ▲4.1135.29 ▼0.22
Add New Post /wp-admin/post-new.php1,543 ▲1723.59 ▲5.92605.36 ▼93.8448.68 ▼11.90
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0099.60 ▼13.4841.88 ▼5.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_dne_gollishare
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-network-links-by-gol-li/golli-share.php:16

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

social-network-links-by-gol-li/golli-share.php 92% from 13 tests

This is the main PHP file of "Social Network Links by gol.li" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-network-links-by-gol-li.php" instead of "golli-share.php")

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
Everything looks great! No dangerous files found in this plugin160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1188160

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin