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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests
This is a short check of server-side resources used by Shareboost
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 69.50 ▲25.84 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.01 ▲1.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.76 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.99 ▼15.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.09 ▼3.70 |
Shareboost /wp-admin/plugins.php?page=shareboost-wordpress | 3.27 | 32.73 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Shareboost
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.91 ▼0.53 | 9.07 ▲7.42 | 40.54 ▲0.76 |
Dashboard /wp-admin | 2,196 ▲22 | 5.59 ▼0.03 | 85.74 ▼5.33 | 38.75 ▼2.98 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▲0.02 | 33.60 ▼5.79 | 34.49 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.76 ▲1.07 | 638.07 ▼31.28 | 58.57 ▲7.50 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.10 | 100.00 ▼8.21 | 42.42 ▼2.34 |
Shareboost /wp-admin/plugins.php?page=shareboost-wordpress | 1,041 | 1.69 | 24.87 | 63.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/plugins.php?page=shareboost-wordpress
- > Notice in wp-content/plugins/shareboost/views/admin.php+15
Undefined index: title
- > GET request to /wp-admin/plugins.php?page=shareboost-wordpress
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/plugins.php?page=shareboost-wordpress
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shareboost/views/public.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: title in wp-content/plugins/shareboost/views/admin.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shareboost/views/admin.php:34
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
shareboost/shareboost-wordpress.php 92% from 13 tests
The main file in "Shareboost" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shareboost.php" instead of "shareboost-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin13,398 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 2,056 | 92 | 12,681 |
SVG | 2 | 0 | 0 | 448 |
PHP | 7 | 73 | 184 | 259 |
JavaScript | 2 | 0 | 2 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 48.80KB | 22.35KB | ▼ 54.20% |
screenshot-1.png | 165.25KB | 38.27KB | ▼ 76.84% |
assets/banner-772x250.png | 19.32KB | 9.23KB | ▼ 52.23% |