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.07MB] [CPU: ▼9.39ms] Passed 4 tests
A check of server-side resources used by Webshare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.98 ▼6.17 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.19 ▼17.59 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.79 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.82 ▼12.78 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 35.42 ▲1.67 |
Webshare /wp-admin/options-general.php?page=webshare-options | 3.28 | 30.47 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
webshare_list |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
webshare_settings |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Webshare
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.58 ▼0.55 | 1.65 ▼0.10 | 39.82 ▲0.00 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.03 | 100.59 ▼20.09 | 40.61 ▼4.31 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▲0.03 | 39.42 ▲3.22 | 37.77 ▲5.12 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 23.17 ▼0.01 | 646.34 ▼108.74 | 46.15 ▼1.77 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.21 ▲0.02 | 96.12 ▼2.26 | 41.94 ▼2.73 |
Webshare /wp-admin/options-general.php?page=webshare-options | 895 | 1.89 | 29.24 | 30.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: social, sharing, genericons
webshare/webshare.php Passed 13 tests
The principal PHP file in "Webshare" v. 1.2.7 is loaded by WordPress automatically on each request
26 characters long description:
Adds social sharing links.
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
Everything looks great! No dangerous files found in this plugin1,281 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 3 | 487 |
PHP | 4 | 133 | 198 | 290 |
CSS | 6 | 26 | 21 | 289 |
PO File | 2 | 34 | 38 | 111 |
Markdown | 1 | 44 | 0 | 80 |
JavaScript | 1 | 6 | 4 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin