Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.73ms] Passed 4 tests
Server-side resources used by Basic Social Share Buttons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.59 ▼1.38 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.57 ▼21.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.19 ▲4.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.12 ▼18.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.85 ▲2.77 |
Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Basic Social Share Buttons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.21 ▼1.17 | 1.59 ▼0.21 | 41.53 ▼1.40 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲0.95 | 104.60 ▼4.83 | 42.21 ▼2.54 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 38.01 ▲1.18 | 36.88 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 23.57 ▲0.33 | 589.74 ▼62.38 | 46.10 ▼4.48 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▲0.01 | 94.19 ▼4.82 | 40.91 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'BBD_Basic_Share_Buttons' not found in wp-content/plugins/basic-social-share-buttons/classes/bsb-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/basic-social-share-buttons/basic-share-buttons.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-social-share-buttons/classes/bsb-settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid version format
basic-social-share-buttons/basic-share-buttons.php 92% from 13 tests
The primary PHP file in "Basic Social Share Buttons" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("basic-social-share-buttons.php" instead of "basic-share-buttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin608 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 75 | 18 | 324 |
CSS | 2 | 36 | 1 | 175 |
JavaScript | 2 | 20 | 6 | 69 |
Markdown | 1 | 24 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 35.02KB | 11.83KB | ▼ 66.22% |
assets/screenshot-3.png | 27.10KB | 9.52KB | ▼ 64.88% |
assets/screenshot-4.png | 54.65KB | 16.82KB | ▼ 69.23% |
assets/screenshot-1.png | 44.75KB | 14.79KB | ▼ 66.95% |
assets/screenshot-5.png | 16.72KB | 6.69KB | ▼ 59.97% |