84% no-js-social-sharing

Code Review | No JS Social Sharing

WordPress plugin No JS Social Sharing scored84%from 54 tests.

About plugin

  • Plugin page: no-js-social-sharing
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Apr 11, 2023
  • Number of updates: 12
  • Update frequency: every 56.5 days
  • Top authors: webheadllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.31ms] Passed 4 tests

This is a short check of server-side resources used by No JS Social Sharing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.88 ▼1.16
Dashboard /wp-admin3.37 ▲0.0646.24 ▼3.29
Posts /wp-admin/edit.php3.42 ▲0.0650.13 ▲3.15
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.36 ▲0.24
Media Library /wp-admin/upload.php3.29 ▲0.0636.31 ▲2.96
No JS Social Sharing Settings /wp-admin/options-general.php?page=njss-options3.2632.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for No JS Social Sharing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.26 ▼1.121.91 ▲0.1639.28 ▼4.45
Dashboard /wp-admin2,213 ▲225.86 ▲1.01108.48 ▲1.3842.28 ▼1.98
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0639.91 ▲5.2336.47 ▲0.48
Add New Post /wp-admin/post-new.php1,537 ▲423.40 ▲0.32587.70 ▼89.9854.75 ▲0.53
Media Library /wp-admin/upload.php1,386 ▲14.20 ▲0.0497.97 ▼3.6542.87 ▼1.20
No JS Social Sharing Settings /wp-admin/options-general.php?page=njss-options1,0692.0223.0439.31

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/no-js-social-sharing/inc/general.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/no-js-social-sharing/inc/general.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-js-social-sharing/inc/public.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-js-social-sharing/inc/options-page.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: share, simple, no javascript, pagespeed, optimized...

no-js-social-sharing/no-js-social-sharing.php Passed 13 tests

"No JS Social Sharing" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Social media sharing without the BS. A light, SEO friendly way to share your posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected392 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP55165385
SVG5005
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
No PNG images were found in this plugin