Benchmarks
Plugin footprint 23% 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
- This plugin did not install gracefully
- > Notice in wp-content/plugins/survey-maker-lite/index.php+68
Undefined variable: table_name
Server metrics [RAM: ▼1.21MB] [CPU: ▼40.17ms] Passed 4 tests
This is a short check of server-side resources used by Survey Maker Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.70 | 14.28 ▼26.91 |
Dashboard /wp-admin | 2.80 ▼0.51 | 18.08 ▼30.61 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 14.59 ▼31.78 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 16.76 ▼71.38 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 20.31 ▼17.63 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_sm_result |
wp_sm |
wp_sm_survey |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Survey Maker Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.19 ▼1.18 | 4.40 ▲2.26 | 42.71 ▼6.44 |
Dashboard /wp-admin | 2,222 ▲34 | 5.76 ▼0.11 | 102.60 ▼0.89 | 41.27 ▼4.40 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.99 ▼0.02 | 38.51 ▲2.07 | 32.46 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.29 ▲0.12 | 672.07 ▼38.19 | 53.67 ▲4.30 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.23 ▼0.05 | 96.49 ▼3.81 | 41.75 ▼2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/survey-maker-lite/index.php+153
Undefined index: sm
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_sm_survey
- wp_sm_result
- wp_sm
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/survey-maker-lite/php/admin_new.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/survey-maker-lite/php/shortcode.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/survey-maker-lite/php/tableClass.php on line 3
- > PHP Warning
Use of undefined constant PLUGIN_TABLE_INDEX - assumed 'PLUGIN_TABLE_INDEX' (this will throw an Error in a future version of PHP) in wp-content/plugins/survey-maker-lite/php/admin_result.php on line 29
- > PHP Warning
Use of undefined constant PLUGIN_TABLE_SURVEY - assumed 'PLUGIN_TABLE_SURVEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/survey-maker-lite/php/admin_edit.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/survey-maker-lite/index.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/survey-maker-lite/php/admin_result.php:30
- > PHP Fatal error
Uncaught Error: Class 'sortableTable2' not found in wp-content/plugins/survey-maker-lite/php/admin_index.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/survey-maker-lite/php/admin_edit.php:32
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/survey-maker-lite/php/tableClass.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/survey-maker-lite/php/admin_delete.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (http://misterpah.com/wp-content/uploads/2012/12/Screenshot-from-2012-12-19-135759.png) image required
survey-maker-lite/index.php 92% from 13 tests
The main PHP script in "Survey Maker Lite" version 0.8 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("survey-maker-lite.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,120 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 946 | 690 | 3,812 |
PHP | 8 | 316 | 225 | 856 |
HTML | 1 | 1 | 0 | 230 |
CSS | 3 | 29 | 0 | 222 |
PHP code Passed 2 tests
A short review 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.13 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.55 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jPaginate/bg.png | 3.96KB | 1.94KB | ▼ 50.86% |
js/jPaginate/about.png | 1.83KB | 1.16KB | ▼ 36.44% |
js/jPaginate/images/snext.png | 3.05KB | 0.41KB | ▼ 86.51% |
js/jPaginate/images/previous.png | 2.86KB | 0.21KB | ▼ 92.58% |
css/cursor_drag_arrow.png | 5.92KB | 0.74KB | ▼ 87.45% |