Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.96ms] Passed 4 tests
An overview of server-side resources used by Simple Share Follow Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.55 ▲0.34 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.47 ▼15.66 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.28 ▲4.23 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.08 | 96.07 ▼0.42 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.83 ▲3.92 |
Simple Share Follow Button /wp-admin/options-general.php?page=simplesharefollowbutton | 3.30 | 37.30 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
ssfbf |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Share Follow Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.35 ▲0.01 | 1.64 ▲0.10 | 42.33 ▲3.65 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.04 | 92.89 ▼3.21 | 41.32 ▲0.86 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 40.22 ▲3.35 | 36.45 ▲5.25 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.25 ▼4.75 | 591.54 ▼89.02 | 68.57 ▲6.32 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▲0.00 | 99.16 ▼2.08 | 42.11 ▼9.03 |
Simple Share Follow Button /wp-admin/options-general.php?page=simplesharefollowbutton | 1,330 | 8.37 | 219.31 | 37.02 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- ssfbf
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× 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/simple-share-follow-button/lib/class-simplesharefollowbutton.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-share-follow-button/lib/class-simplesharefollowbuttonadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-share-follow-button/lib/class-simplesharefollowbutton.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: share, follow
simple-share-follow-button/simplesharefollowbutton.php 92% from 13 tests
"Simple Share Follow Button" version 1.05's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-share-follow-button.php" instead of "simplesharefollowbutton.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin726 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 164 | 337 |
JavaScript | 3 | 18 | 3 | 187 |
CSS | 3 | 12 | 2 | 136 |
Sass | 1 | 0 | 0 | 25 |
SVG | 1 | 0 | 0 | 21 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin