10% doms-social-links

Code Review | DOMS Social Links

WordPress plugin DOMS Social Links scored10%from 54 tests.

About plugin

  • Plugin page: doms-social-links
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Aug 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: darwinmateos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

Benchmarks

Plugin footprint 58% 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
    • > Error in wp-content/plugins/doms-social-links/doms-social-links.php+19
    Uncaught ArgumentCountError: Too few arguments to function doms_social_media_links(), 0 passed in wp-content/plugins/doms-social-links/doms-social-links.php on line 76 and exactly 1 expected in wp-content/plugins/doms-social-links/doms-social-links.php:19
    Stack trace:
    #0 wp-content/plugins/doms-social-links/doms-social-links.php(76): doms_social_media_links()
    #1 wp-includes/class-wp-hook.php(310): doms_social_activation()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.28ms] Passed 4 tests

Analyzing server-side resources used by DOMS Social Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.63 ▲5.48
Dashboard /wp-admin3.31 ▲0.0042.09 ▼9.16
Posts /wp-admin/edit.php3.36 ▲0.0043.12 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.01 ▼8.72
Media Library /wp-admin/upload.php3.23 ▲0.0035.83 ▲3.78

Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for DOMS Social Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.211.82 ▲0.1344.49 ▲0.69
Dashboard /wp-admin2,209 ▲185.83 ▲0.94110.24 ▼0.7541.93 ▼9.19
Posts /wp-admin/edit.php2,089 ▼02.16 ▲0.1639.16 ▲1.0036.17 ▼3.40
Add New Post /wp-admin/post-new.php1,533 ▲523.13 ▲5.10661.48 ▲32.1553.28 ▲2.08
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0594.29 ▼9.5143.68 ▼0.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: shortcode, social, links

doms-social-links/doms-social-links.php 92% from 13 tests

The main PHP script in "DOMS Social Links" version 0.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected119 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS211860
PHP2182559

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin