Benchmarks
Plugin footprint 65% 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.90MB] [CPU: ▼31.42ms] Passed 4 tests
An overview of server-side resources used by Feedbackstr easyShare
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.42 ▼6.85 |
Dashboard /wp-admin | 3.04 ▼0.26 | 25.87 ▼20.85 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 24.69 ▼21.57 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 24.81 ▼73.12 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 24.82 ▼10.14 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Feedbackstr easyShare: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.45 ▼0.86 | 1.81 ▼0.01 | 31.41 ▼10.09 |
Dashboard /wp-admin | 2,229 ▲44 | 5.97 ▲0.18 | 105.94 ▲0.79 | 86.92 ▲43.24 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.30 ▲0.29 | 41.24 ▼3.16 | 39.92 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,704 ▲190 | 22.64 ▲5.06 | 736.11 ▲77.76 | 34.92 ▼29.87 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.36 ▲0.07 | 115.37 ▲13.89 | 44.90 ▲2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/feedbackstr-easyshare/dashboard/header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feedbackstr-easyshare/shortcode-button.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/feedbackstr-easyshare/dashboard/footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedbackstr-easyshare/dashboard/dashboard.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedbackstr-easyshare/dashboard/dashboard.php:144
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: feedbackstr, spectos, easyshare, umfrage, survey...
feedbackstr-easyshare/index.php 77% from 13 tests
The primary PHP file in "Feedbackstr easyShare" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("feedbackstr-easyshare.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin1,293 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 1 | 5 | 346 |
CSS | 2 | 51 | 0 | 335 |
PHP | 5 | 43 | 26 | 255 |
JavaScript | 3 | 36 | 30 | 216 |
PO File | 2 | 56 | 151 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.56MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dashboard/images/logo.png | 25.48KB | 3.79KB | ▼ 85.12% |
screenshot-1.png | 142.06KB | 45.68KB | ▼ 67.84% |
dashboard/images/f-googleplus.png | 1.43KB | 0.64KB | ▼ 55.17% |
dashboard/images/f-twitter.png | 1.36KB | 0.59KB | ▼ 56.98% |
assets/banner772-250.png | 133.59KB | 56.61KB | ▼ 57.63% |