Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.55ms] Passed 4 tests
This is a short check of server-side resources used by An Easy Skype Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.76 ▼1.96 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.24 ▼3.07 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.15 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.97 ▲1.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.04 ▼2.06 |
Skype Settings /wp-admin/options-general.php?page=octopus-skype-button | 3.40 | 36.38 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 405 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for An Easy Skype Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.28 ▼0.07 | 1.80 ▲0.03 | 39.56 ▼3.52 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.01 | 81.92 ▼3.43 | 37.50 ▼7.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 42.21 ▲7.31 | 35.99 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.16 ▼0.50 | 675.82 ▲49.59 | 49.18 ▲2.78 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.26 ▲0.02 | 108.48 ▲6.13 | 46.52 ▲2.66 |
Skype Settings /wp-admin/options-general.php?page=octopus-skype-button | 787 | 2.14 | 22.88 | 23.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=octopus-skype-button
- > Notice in wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/src/Mustache/Parser.php+278
Trying to access array offset on value of type null
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/bin/build_bootstrap.php
- > /wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/bin/build_bootstrap.php
- 118× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/Mustache/Test/TokenizerTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Test_FunctionalTestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/Mustache/Test/Cache/FilesystemCacheTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/src/Mustache/Loader/InlineLoader.php:50
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/src/Mustache/Loader/StringLoader.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/Mustache/Test/Loader/StringLoaderTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: mustache, wpexpress, skype button
an-easy-skype-button/init.php 92% from 13 tests
The primary PHP file in "An Easy Skype Button" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("an-easy-skype-button.php" instead of "init.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/an-easy-skype-button/vendor/page-carbajal/wpexpress/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- ☣ wp-content/plugins/an-easy-skype-button/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 1,968 | 4,261 | 8,798 |
Markdown | 4 | 96 | 0 | 207 |
JSON | 5 | 1 | 0 | 195 |
Mustache | 36 | 3 | 0 | 163 |
PO File | 2 | 8 | 8 | 48 |
YAML | 2 | 6 | 0 | 26 |
XML | 1 | 2 | 0 | 15 |
CSS | 1 | 1 | 0 | 11 |
JavaScript | 1 | 0 | 3 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 242 | |
▷ Abstract classes | 12 | 4.96% |
▷ Concrete classes | 230 | 95.04% |
▷ Final classes | 0 | 0.00% |
Methods | 983 | |
▷ Static methods | 71 | 7.22% |
▷ Public methods | 835 | 84.94% |
▷ Protected methods | 43 | 4.37% |
▷ Private methods | 105 | 10.68% |
Functions | 70 | |
▷ Named functions | 5 | 7.14% |
▷ Anonymous functions | 65 | 92.86% |
Constants | 128 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 128 | 100.00% |
▷ Public constants | 128 | 100.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
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/shortcode-demo.png | 100.88KB | 31.86KB | ▼ 68.42% |
resources/images/demo-button.png | 10.43KB | 2.19KB | ▼ 78.96% |
resources/images/configure-account.png | 24.60KB | 5.87KB | ▼ 76.13% |