Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.51ms] Passed 4 tests
A check of server-side resources used by KN Mobile ShareBar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.53 ▲5.11 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.18 ▼2.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.26 ▲4.43 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.91 ▼0.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.42 ▲0.07 |
KN Mobile Sharebar /wp-admin/options-general.php?page=kn_mobile_sharebar_settings | 3.25 | 30.19 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
kn_mobile_sharebar_visibility_homepage |
can_compress_scripts |
kn_mobile_sharebar_twitter |
kn_mobile_sharebar_height |
widget_theysaidso_widget |
kn_mobile_sharebar_small_desktop |
kn_mobile_sharebar_facebook |
kn_mobile_sharebar_visibility_page |
kn_mobile_sharebar_whatsapp |
... |
Browser metrics Passed 4 tests
A check of browser resources used by KN Mobile ShareBar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.26 ▼1.11 | 4.49 ▲2.67 | 43.66 ▲3.42 |
Dashboard /wp-admin | 2,210 ▲21 | 5.80 ▼0.06 | 101.46 ▼8.38 | 41.74 ▼1.27 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.05 | 40.06 ▲3.37 | 34.55 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 18.14 ▼5.06 | 611.20 ▼45.80 | 68.61 ▲5.30 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.12 | 95.46 ▼10.06 | 44.11 ▼2.30 |
KN Mobile Sharebar /wp-admin/options-general.php?page=kn_mobile_sharebar_settings | 997 | 2.21 | 23.21 | 35.62 |
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
- This plugin did not uninstall successfully, leaving 15 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- kn_mobile_sharebar_visibility_homepage
- kn_mobile_sharebar_where
- kn_mobile_sharebar_visibility_page
- kn_mobile_sharebar_whatsapp
- db_upgraded
- kn_mobile_sharebar_small_desktop
- widget_theysaidso_widget
- ...
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kn-mobile-sharebar/kn_ects.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/kn-mobile-sharebar/kn_mobile_sharebar.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Demo in action), #2 (Setting page)
kn-mobile-sharebar/kn_mobile_sharebar.php 92% from 13 tests
"KN Mobile ShareBar" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kn-mobile-sharebar.php" instead of "kn_mobile_sharebar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin296 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 17 | 200 |
CSS | 1 | 0 | 1 | 96 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
6 PNG files occupy 0.28MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 215.55KB | 100.01KB | ▼ 53.60% |
images/facebook.png | 6.04KB | 2.17KB | ▼ 64.11% |
images/blank.png | 3.10KB | 0.11KB | ▼ 96.38% |
screenshot-2.png | 48.56KB | 15.63KB | ▼ 67.83% |
images/twitter.png | 5.93KB | 1.90KB | ▼ 68.01% |