Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.42ms] Passed 4 tests
An overview of server-side resources used by Wow Skype Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.01 ▼3.19 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.01 ▼19.92 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.75 ▲6.13 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.00 ▼8.95 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.49 ▼1.62 |
Skype Buttons /wp-admin/admin.php?page=mwp-skype | 3.41 | 33.27 |
Welcome /wp-admin/admin.php?page=wow-company | 3.28 | 32.84 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 93 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wow_skype_new |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wow_skype_new_updater_4.0 |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Wow Skype Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 14.43 ▼0.13 | 2.10 ▲0.50 | 38.44 ▼4.46 |
Dashboard /wp-admin | 2,255 ▲78 | 5.51 ▼0.16 | 87.88 ▼11.96 | 38.88 ▼3.65 |
Posts /wp-admin/edit.php | 2,166 ▲63 | 2.13 ▲0.10 | 44.55 ▲1.30 | 37.01 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.49 ▲0.22 | 673.17 ▲18.84 | 54.04 ▼0.53 |
Media Library /wp-admin/upload.php | 1,469 ▲75 | 4.23 ▼0.04 | 105.44 ▲12.02 | 42.74 ▲0.24 |
Skype Buttons /wp-admin/admin.php?page=mwp-skype | 1,123 | 1.95 | 35.85 | 27.22 |
Welcome /wp-admin/admin.php?page=wow-company | 925 | 2.00 | 26.67 | 37.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wow_skype_new
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- wow_skype_new_updater_4.0
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: title in wp-content/plugins/mwp-skype/admin/settings/settings/settings.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/mwp-skype/admin/settings/style/settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/mwp-skype/admin/settings/settings/settings.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: These screenshots do not have images: #1 (Add a skype button anywhere), #2 (Features), #3 (Pro version enables a lot more options), #4 (Pro version features), #5 (Use with Wow Modal Windows to create a fixed skype button)
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
mwp-skype/mwp-skype.php 92% from 13 tests
The main PHP script in "Wow Skype Buttons" version 4.0.3 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected10,483 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 284 | 42 | 7,822 |
PHP | 34 | 398 | 546 | 2,189 |
JavaScript | 6 | 86 | 166 | 472 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 53 | |
▷ Static methods | 11 | 20.75% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 1 | 1.89% |
▷ Private methods | 5 | 9.43% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/call.png | 1.11KB | 0.39KB | ▼ 64.90% |
admin/assets/img/redirect.png | 3.16KB | 1.35KB | ▼ 57.07% |
admin/assets/img/triggers.png | 4.68KB | 2.52KB | ▼ 46.01% |
public/assets/img/userinfo.png | 2.97KB | 0.35KB | ▼ 88.12% |
public/assets/img/chat.png | 2.97KB | 0.42KB | ▼ 86.01% |