Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+4034
Undefined variable: opin_db_version
Server metrics [RAM: ▲0.53MB] [CPU: ▲1.04ms] Passed 4 tests
A check of server-side resources used by Opinionnaire® Survey analysis and Fast Forum® reports
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 48.14 ▲8.17 |
Dashboard /wp-admin | 3.84 ▲0.53 | 56.90 ▲4.79 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 53.58 ▲6.32 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 91.40 ▼5.64 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 37.61 ▼1.33 |
Survey Credentials /wp-admin/admin.php?page=manage-survey-source-credentials | 3.70 | 39.88 |
Sample Data /wp-admin/admin.php?page=sample-data | 3.72 | 35.17 |
Opinionnaire® /wp-admin/admin.php?page=opinionnaire | 3.72 | 35.10 |
SurveyGizmo /wp-admin/admin.php?page=survey-gizmo | 3.70 | 31.45 |
Server storage [IO: ▲23.70MB] [DB: ▲1.75MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 310 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_opinionnaire_custom_demographics |
wp_opinionnaire_users |
wp_opinionnaire_sources |
wp_opinionnaire_sample_data |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
opin_db_version |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Opinionnaire® Survey analysis and Fast Forum® reports
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.47 ▼0.09 | 1.75 ▼0.47 | 44.09 ▼2.84 |
Dashboard /wp-admin | 2,247 ▲59 | 4.88 ▲0.00 | 111.71 ▲5.86 | 41.13 ▲1.28 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▼0.02 | 35.16 ▼2.63 | 35.44 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,568 ▲49 | 23.45 ▲0.41 | 663.75 ▲0.58 | 62.73 ▲8.68 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.14 ▼0.11 | 97.72 ▼6.59 | 41.61 ▼4.77 |
Survey Credentials /wp-admin/admin.php?page=manage-survey-source-credentials | 869 | 2.06 | 24.51 | 29.41 |
Sample Data /wp-admin/admin.php?page=sample-data | 846 | 2.12 | 25.57 | 26.71 |
Opinionnaire® /wp-admin/admin.php?page=opinionnaire | 861 | 1.99 | 25.64 | 34.29 |
SurveyGizmo /wp-admin/admin.php?page=survey-gizmo | 863 | 2.06 | 27.09 | 26.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲1.75MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_opinionnaire_sample_data
- wp_opinionnaire_users
- wp_opinionnaire_sources
- wp_opinionnaire_custom_demographics
- The uninstall procedure has failed, leaving 7 options in the database
- opin_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=manage-survey-source-credentials
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+653
Undefined variable: inserted
- > GET request to /wp-admin/admin.php?page=manage-survey-source-credentials
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+653
Undefined variable: updated
- > GET request to /wp-admin/admin.php?page=opinionnaire
- > Warning in wp-content/plugins/opinionnaire-survey-analysis-report-generator/welcome.php+11
Use of undefined constant CSR_VERSION - assumed 'CSR_VERSION' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Warning in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3854
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+816
Undefined index: custom_demo_select
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3515
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3514
Trying to get property 'source_user' of non-object
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3515
Trying to get property 'source_pass' of non-object
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3515
Trying to get property 'source_key' of non-object
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3515
Trying to get property 'source_iv' of non-object
- > GET request to /wp-admin/admin.php?page=survey-gizmo
- > Notice in wp-content/plugins/opinionnaire-survey-analysis-report-generator/opinionnaire.php+3522
Undefined property: stdClass::$total_count
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/welcome.php
- > /wp-content/plugins/opinionnaire-survey-analysis-report-generator/welcome.php
- 98× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'jpgraph/jpgraph_barcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/opinionnaire-survey-analysis-report-generator/jpgraph/barcode/examples/barcode_ex0.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Plot' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/jpgraph/jpgraph_stock.php:15
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/jpgraph/themes/SoftyTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/jpgraph/jpgraph_gantt.php:330
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/jpgraph/jpgraph_canvas.php:20
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/jpgraph/themes/OceanTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/jpgraph/themes/OceanTheme.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'ImgData' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/jpgraph/imgdata_pushpins.inc.php:11
- > PHP Fatal error
Uncaught Error: Class 'Theme' not found in wp-content/plugins/opinionnaire-survey-analysis-report-generator/jpgraph/themes/VividTheme.class.php:6
- > PHP Fatal error
require_once(): Failed opening required 'jpgraph/jpgraph_barcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/opinionnaire-survey-analysis-report-generator/trunk/jpgraph/barcode/examples/barcode_ex1.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: gizmo, opinionnaire, survey, reports, report generation...
opinionnaire-survey-analysis-report-generator/opinionnaire.php 92% from 13 tests
The main PHP file in "Opinionnaire® Survey analysis and Fast Forum® reports" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("opinionnaire-survey-analysis-report-generator.php" instead of "opinionnaire.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected58,668 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 8,141 | 18,435 | 56,061 |
JavaScript | 13 | 238 | 186 | 1,916 |
CSS | 4 | 82 | 0 | 640 |
Markdown | 1 | 23 | 0 | 42 |
HTML | 1 | 3 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 45.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 651.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 334 | |
▷ Abstract classes | 2 | 0.60% |
▷ Concrete classes | 332 | 99.40% |
▷ Final classes | 0 | 0.00% |
Methods | 4,016 | |
▷ Static methods | 80 | 1.99% |
▷ Public methods | 4,016 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 88 | |
▷ Named functions | 86 | 97.73% |
▷ Anonymous functions | 2 | 2.27% |
Constants | 1,168 | |
▷ Global constants | 1,168 | 100.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
22 PNG files occupy 1.02MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/ndn_screen2.png | 49.45KB | 13.58KB | ▼ 72.54% |
trunk/assets/NDN_logo_horz_SM.png | 26.57KB | 10.53KB | ▼ 60.36% |
assets/screenshot-2.png | 49.45KB | 13.58KB | ▼ 72.54% |
trunk/assets/ndn_screen1.png | 72.53KB | 21.56KB | ▼ 70.27% |
assets/ndn_screen1.png | 72.53KB | 21.56KB | ▼ 70.27% |