Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.06ms] Passed 4 tests
Server-side resources used by Shariff Wrapper
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.01 ▲1.60 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.01 ▲2.57 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 44.19 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.11 ▼2.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.26 ▲1.57 |
Shariff /wp-admin/options-general.php?page=shariff3uu | 3.30 | 36.04 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 11 new options
New WordPress options |
---|
shariff3uu_advanced |
widget_shariff |
shariff3uu_design |
shariff3uu_basic |
shariff3uu_statistic |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Shariff Wrapper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 14.75 ▼0.06 | 1.61 ▼0.26 | 37.51 ▼8.54 |
Dashboard /wp-admin | 2,213 ▲7 | 4.82 ▼0.98 | 96.81 ▲1.57 | 39.07 ▼1.68 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 35.01 ▲1.58 | 36.30 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6,511 ▲4,978 | 20.45 ▼2.76 | 976.63 ▲286.15 | 57.63 ▼0.03 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.01 | 94.95 ▼5.78 | 45.80 ▼4.44 |
Shariff /wp-admin/options-general.php?page=shariff3uu | 1,067 | 3.16 | 39.74 | 33.94 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shariff/bitcoin.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: bitcoinaddress in wp-content/plugins/shariff/bitcoin.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shariff/includes/class-shariff-widget.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
5 plugin tags: gdpr, sharing, share buttons, dsgvo, shariff
shariff/shariff.php Passed 13 tests
Analyzing the main PHP file in "Shariff Wrapper" version 4.6.9
130 characters long description:
Shariff provides share buttons that respect the privacy of your visitors and follow the General Data Protection Regulation (GDPR).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected7,638 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 1,414 | 2,081 | 7,159 |
CSS | 2 | 0 | 18 | 360 |
JavaScript | 6 | 0 | 45 | 107 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 69 | 46.62% |
▷ Public methods | 144 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.70% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/borderradius.png | 9.02KB | 3.80KB | ▼ 57.90% |
images/shariff_designs.png | 22.68KB | 9.29KB | ▼ 59.02% |
images/defaultHint.png | 15.76KB | 7.39KB | ▼ 53.11% |