Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.70ms] Passed 4 tests
A check of server-side resources used by WordSurvey
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.09 ▼2.98 |
Dashboard /wp-admin | 3.50 ▲0.19 | 51.44 ▼3.98 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 54.21 ▲1.39 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 99.10 ▲2.77 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.72 ▲2.82 |
Add Survey /wp-admin/admin.php?page=wordsurvey/wordsurvey-add.php | 3.41 | 39.18 |
WordSurvey /wp-admin/admin.php?page=wordsurvey/wordsurvey-manager.php | 3.48 | 37.71 |
Server storage [IO: ▲9.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_wordsurvey_answer |
wp_wordsurvey_vote |
wp_wordsurvey_question |
wp_wordsurvey |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
wrdsrv_surveylimit |
Browser metrics Passed 4 tests
An overview of browser requirements for WordSurvey
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲118 | 13.42 ▼0.94 | 7.65 ▲5.46 | 40.55 ▼2.66 |
Dashboard /wp-admin | 2,225 ▲45 | 5.60 ▼0.07 | 90.47 ▼6.29 | 43.41 ▲0.70 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.06 | 40.22 ▲2.41 | 36.09 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.01 ▼0.18 | 634.83 ▼24.17 | 66.44 ▲7.11 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.04 | 96.81 ▼0.92 | 43.64 ▼0.88 |
Add Survey /wp-admin/admin.php?page=wordsurvey/wordsurvey-add.php | 1,787 | 2.17 | 40.88 | 64.99 |
WordSurvey /wp-admin/admin.php?page=wordsurvey/wordsurvey-manager.php | 851 | 1.81 | 26.89 | 29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- wrdsrv_surveylimit
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wordsurvey/lib/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/wordsurvey/inc/piegraphstat.php
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query SELECT sounding_id,sounding_name,sounding_expiration_date FROM wp_wordsurvey WHERE sounding_id =
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphPieGraph.php:22
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > PHP Fatal error
Uncaught Error: Class 'Graph' not found in wp-content/plugins/wordsurvey/lib/SVGGraph/SVGGraphGridGraph.php:29
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: survey, poll builder, customer satisfaction, opinion, survey form...
wordsurvey/wp-wordsurvey.php 85% from 13 tests
Analyzing the main PHP file in "WordSurvey" version 3.2
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordsurvey.php" instead of "wp-wordsurvey.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected69,479 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 3,314 | 14,269 | 58,312 |
CSS | 7 | 71 | 30 | 7,651 |
JavaScript | 7 | 775 | 239 | 2,264 |
INI | 1 | 32 | 1 | 475 |
PO File | 2 | 206 | 254 | 449 |
SVG | 1 | 0 | 0 | 288 |
JSON | 1 | 0 | 0 | 40 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,349)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 114.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 7.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 5 | 6.67% |
▷ Concrete classes | 70 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,240 | |
▷ Static methods | 129 | 10.40% |
▷ Public methods | 692 | 55.81% |
▷ Protected methods | 509 | 41.05% |
▷ Private methods | 39 | 3.15% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 110 | |
▷ Global constants | 110 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected