Benchmarks
Plugin footprint 83% 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.10MB] [CPU: ▼3.15ms] Passed 4 tests
A check of server-side resources used by Surveys by Feedback Cat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 53.12 ▲6.66 |
Dashboard /wp-admin | 3.39 ▲0.09 | 54.60 ▼7.47 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.24 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 95.49 ▼11.35 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.12 ▲3.93 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 189 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Surveys by Feedback Cat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.10 ▼0.32 | 1.97 ▲0.21 | 42.53 ▼1.15 |
Dashboard /wp-admin | 2,216 ▲39 | 5.68 ▲0.02 | 91.19 ▼11.30 | 36.91 ▼7.81 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.02 | 34.28 ▼2.26 | 35.26 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.65 ▼0.02 | 691.31 ▲1.89 | 55.51 ▼3.21 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.22 ▲0.04 | 98.88 ▼8.06 | 42.59 ▼3.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
- 58× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/surveys-by-feedback-cat/lib/mustache.php-2.8.0/src/Mustache/Exception/SyntaxException.php:15
- > PHP Warning
require_once(FCA_FBC_INCLUDES_DIR/FCA/Component.php): failed to open stream: No such file or directory in wp-content/plugins/surveys-by-feedback-cat/includes/FCA/FBC/Poll/Component.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'FCA_FBC_INCLUDES_DIR/FCA/Form.php' (include_path='.:/usr/share/php') in wp-content/plugins/surveys-by-feedback-cat/includes/FCA/FBC/Poll/Admin/Form.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/surveys-by-feedback-cat/lib/mustache.php-2.8.0/src/Mustache/Loader/ArrayLoader.php:27
- > PHP Fatal error
require_once(): Failed opening required 'FCA_FBC_INCLUDES_DIR/FCA/Form.php' (include_path='.:/usr/share/php') in wp-content/plugins/surveys-by-feedback-cat/includes/FCA/FBC/Poll/Admin/Form.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/surveys-by-feedback-cat/lib/mustache.php-2.8.0/src/Mustache/Logger/AbstractLogger.php:21
- > PHP Warning
require_once(FCA_FBC_INCLUDES_DIR/FCA/MetaBox.php): failed to open stream: No such file or directory in wp-content/plugins/surveys-by-feedback-cat/includes/FCA/FBC/Poll/Admin/FormMetaBox.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'FCA_FBC_INCLUDES_DIR/FCA/Form.php' (include_path='.:/usr/share/php') in wp-content/plugins/surveys-by-feedback-cat/includes/FCA/FBC/Poll/Admin/Form.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Logger_AbstractLogger' not found in wp-content/plugins/surveys-by-feedback-cat/lib/mustache.php-2.8.0/src/Mustache/Logger/StreamLogger.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/surveys-by-feedback-cat/lib/mustache.php-2.8.0/src/Mustache/Loader/FilesystemLoader.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (A multiple choice feedback / surveys form), #2 (A longform text feedback / surveys form), #3 (Confirmation screen), #4 (Our simple 1-page user interface)
surveys-by-feedback-cat/feedback-cat.php 92% from 13 tests
This is the main PHP file of "Surveys by Feedback Cat" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("surveys-by-feedback-cat.php" instead of "feedback-cat.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin17,959 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,763 | 3,385 | 7,825 |
Sass | 50 | 946 | 120 | 3,748 |
CSS | 33 | 492 | 34 | 3,393 |
LESS | 13 | 26 | 33 | 1,343 |
SVG | 1 | 0 | 0 | 565 |
Markdown | 2 | 138 | 0 | 556 |
JavaScript | 5 | 99 | 22 | 407 |
Mustache | 3 | 7 | 0 | 44 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 4 | 1 | 23 |
Bourne Shell | 1 | 4 | 3 | 18 |
YAML | 1 | 0 | 0 | 7 |
make | 1 | 1 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 20.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 7 | 10.94% |
▷ Concrete classes | 57 | 89.06% |
▷ Final classes | 0 | 0.00% |
Methods | 597 | |
▷ Static methods | 44 | 7.37% |
▷ Public methods | 316 | 52.93% |
▷ Protected methods | 204 | 34.17% |
▷ Private methods | 77 | 12.90% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 111 | |
▷ Global constants | 6 | 5.41% |
▷ Class constants | 105 | 94.59% |
▷ Public constants | 105 | 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
4 PNG files occupy 0.31MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 84.49KB | 48.52KB | ▼ 42.58% |
screenshot-1.png | 6.61KB | 4.64KB | ▼ 29.87% |
screenshot-3.png | 113.76KB | 60.45KB | ▼ 46.87% |
screenshot-2.png | 117.20KB | 61.63KB | ▼ 47.41% |