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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.88 ▼1.16 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.24 ▼3.29 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.13 ▲3.15 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.36 ▲0.24 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.31 ▲2.96 |
No JS Social Sharing Settings /wp-admin/options-general.php?page=njss-options | 3.26 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.26 ▼1.12 | 1.91 ▲0.16 | 39.28 ▼4.45 |
Dashboard /wp-admin | 2,213 ▲22 | 5.86 ▲1.01 | 108.48 ▲1.38 | 42.28 ▼1.98 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.05 ▲0.06 | 39.91 ▲5.23 | 36.47 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.40 ▲0.32 | 587.70 ▼89.98 | 54.75 ▲0.53 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.20 ▲0.04 | 97.97 ▼3.65 | 42.87 ▼1.20 |
No JS Social Sharing Settings /wp-admin/options-general.php?page=njss-options | 1,069 | 2.02 | 23.04 | 39.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 51 | 65 | 385 |
SVG | 5 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
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 code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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