Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Error in wp-content/plugins/super-web-share/admin/class-super-web-share-admin.php+380
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/super-web-share/admin/class-super-web-share-admin.php:380
Stack trace:
#0 wp-includes/class-wp-hook.php(310): superwebshare_activation_redirect()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲0.41MB] [CPU: ▼4.32ms] Passed 4 tests
A check of server-side resources used by Super Web Share
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.84 ▲2.41 |
Dashboard /wp-admin | 3.79 ▲0.44 | 51.50 ▼14.06 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 53.39 ▼6.50 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 99.78 ▲5.85 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 40.37 ▲0.86 |
Fallback /wp-admin/admin.php?page=superwebshare-fallback | 3.62 | 39.27 |
Status /wp-admin/admin.php?page=superwebshare-status | 3.62 | 39.94 |
Appearance /wp-admin/admin.php?page=superwebshare-appearance | 3.62 | 37.89 |
Floating Button /wp-admin/admin.php?page=superwebshare | 3.62 | 39.29 |
Inline Content /wp-admin/admin.php?page=superwebshare-inline | 3.62 | 35.17 |
Support /wp-admin/admin.php?page=superwebshare-support | 3.62 | 36.50 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
superwebshare_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Super Web Share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲170 | 13.55 ▼0.62 | 2.72 ▲0.77 | 41.58 ▲0.57 |
Dashboard /wp-admin | 2,251 ▲63 | 5.89 ▼0.02 | 107.83 ▼0.70 | 41.79 ▲3.80 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.02 ▼0.02 | 40.70 ▼3.06 | 35.49 ▼1.04 |
Add New Post /wp-admin/post-new.php | 6,291 ▲4,748 | 18.93 ▲0.68 | 914.38 ▲254.48 | 66.26 ▲3.22 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.21 ▲0.02 | 104.41 ▲0.41 | 45.20 ▲0.95 |
Fallback /wp-admin/admin.php?page=superwebshare-fallback | 1,221 | 2.27 | 49.77 | 38.35 |
Status /wp-admin/admin.php?page=superwebshare-status | 840 | 1.98 | 26.74 | 24.98 |
Appearance /wp-admin/admin.php?page=superwebshare-appearance | 1,200 | 2.53 | 41.92 | 38.04 |
Floating Button /wp-admin/admin.php?page=superwebshare | 1,164 | 2.61 | 41.30 | 34.63 |
Inline Content /wp-admin/admin.php?page=superwebshare-inline | 1,137 | 2.45 | 41.84 | 34.77 |
Support /wp-admin/admin.php?page=superwebshare-support | 908 | 1.99 | 28.92 | 31.15 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/super-web-share/public/partials/super-web-share-public-display.php
- 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/super-web-share/public/class-super-web-share-public.php:165
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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: native share, social share, share api, share, share button...
super-web-share/super-web-share.php Passed 13 tests
The principal PHP file in "Super Web Share" v. 2.4 is loaded by WordPress automatically on each request
86 characters long description:
Super Web Share helps to quickly add the Native Share option to your WordPress website
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
Good job! No executable or dangerous file extensions detected2,849 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 462 | 944 | 1,797 |
CSS | 6 | 63 | 10 | 551 |
JavaScript | 4 | 31 | 1 | 202 |
PO File | 1 | 76 | 114 | 201 |
Markdown | 1 | 23 | 0 | 72 |
SVG | 2 | 0 | 1 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 80 | |
▷ Named functions | 77 | 96.25% |
▷ Anonymous functions | 3 | 3.75% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/sws-icons.png | 3.37KB | 2.53KB | ▼ 24.92% |