Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.37MB] [CPU: ▲12.60ms] Passed 4 tests
Analyzing server-side resources used by demovox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 55.42 ▲17.72 |
Dashboard /wp-admin | 4.93 ▲1.58 | 78.36 ▲17.98 |
Posts /wp-admin/edit.php | 4.99 ▲1.62 | 74.75 ▲30.33 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.56 | 97.77 ▲0.24 |
Media Library /wp-admin/upload.php | 4.77 ▲1.53 | 49.18 ▲14.45 |
Signatures Data /wp-admin/admin.php?page=demovoxData | 4.81 | 58.68 |
System info /wp-admin/admin.php?page=demovoxSysinfo | 4.90 | 57.63 |
Import /wp-admin/admin.php?page=demovoxImport | 4.76 | 50.50 |
Settings /wp-admin/admin.php?page=demovoxSettings | 4.76 | 50.99 |
demovox /wp-admin/admin.php?page=demovox | 4.76 | 50.57 |
Server storage [IO: ▲3.75MB] [DB: ▲0.02MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (39.78KB) outside of "wp-content/plugins/demovox/" and "wp-content/uploads/"
- (new file) wp-content/debug.demovox.php
Filesystem: 400 new files
Database: 2 new tables, 205 new options
New tables |
---|
wp_demovox_mails |
wp_demovox_signatures |
New WordPress options |
---|
demovox_field_birthdate_day_rm_y |
demovox_mail_from_name_fr |
demovox_fontsize |
demovox_field_birthdate_year_fr_y |
demovox_cron_mail_remind_sheet_statusSuccess |
demovox_field_qr_img_de_rot |
demovox_mail_from_name_rm |
demovox_mail_remind_sheet_enabled |
demovox_swiss_abroad_allow |
demovox_field_qr_text_rm_y |
... |
Browser metrics Passed 4 tests
Checking browser requirements for demovox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲332 | 19.57 ▲4.84 | 27.39 ▲25.89 | 46.99 ▲4.49 |
Dashboard /wp-admin | 2,378 ▲201 | 8.19 ▲2.62 | 121.83 ▲38.82 | 40.35 ▼4.54 |
Posts /wp-admin/edit.php | 2,309 ▲212 | 5.78 ▲3.81 | 72.16 ▲37.38 | 40.04 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,486 ▼40 | 22.43 ▼1.33 | 531.95 ▼131.08 | 30.07 ▼19.43 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 5.82 ▲1.57 | 95.13 ▼3.97 | 39.67 ▼5.12 |
Signatures Data /wp-admin/admin.php?page=demovoxData | 1,450 | 5.53 | 56.61 | 33.44 |
System info /wp-admin/admin.php?page=demovoxSysinfo | 1,332 | 5.45 | 54.35 | 38.81 |
Import /wp-admin/admin.php?page=demovoxImport | 1,109 | 5.45 | 53.79 | 26.12 |
Settings /wp-admin/admin.php?page=demovoxSettings | 1,169 | 5.47 | 54.62 | 30.00 |
demovox /wp-admin/admin.php?page=demovox | 1,054 | 5.47 | 69.96 | 31.65 |
Uninstaller [IO: ▲0.04MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/demovox/includes/Core.php+247
Array to string conversion
- The uninstall procedure failed, leaving 2 tables in the database
- wp_demovox_mails
- wp_demovox_signatures
- The uninstall procedure has failed, leaving 205 options in the database
- demovox_is_language_enabled_fr
- demovox_mail_smtp_port
- demovox_mail_from_name_de
- demovox_field_street_it_y
- demovox_api_address_gde_input
- demovox_mail_method
- demovox_field_qr_img_fr_x
- demovox_drop_config_on_uninstall
- demovox_field_qr_img_size_de
- demovox_field_qr_img_rm_x
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/demovox/demovox.php
- > /wp-content/plugins/demovox/admin/partials/statsSource.php
- > /wp-content/plugins/demovox/admin/partials/statsCharts.php
- > /wp-content/plugins/demovox/admin/partials/sysinfo-encrypt.php
- 73× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Demovox\\CronBase' not found in wp-content/plugins/demovox/includes/cron/CronMailBase.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Demovox\\submit_button() in wp-content/plugins/demovox/admin/partials-settings/settings-2.php:12
- > PHP Fatal error
Uncaught Error: Class 'Demovox\\ManageCron' not found in wp-content/plugins/demovox/admin/partials/sysinfo.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function Demovox\\__() in wp-content/plugins/demovox/public/partials/sign-3.php:29
- > PHP Notice
Undefined variable: source in wp-content/plugins/demovox/admin/partials/statsCharts.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Demovox\\Infos' not found in wp-content/plugins/demovox/public/partials/sign-1.php:22
- > PHP Fatal error
Uncaught Error: Class 'Demovox\\Db' not found in wp-content/plugins/demovox/includes/db/DbSignatures.php:5
- > PHP Warning
require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/demovox/libs/composer/paragonie/random_compat/psalm-autoload.php on line 3
- > PHP Notice
Undefined variable: hashKey in wp-content/plugins/demovox/admin/partials/sysinfo.php on line 34
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\Math\\MathInterface' not found in wp-content/plugins/demovox/libs/composer/hashids/hashids/src/Math/Gmp.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=demovox
- > Network (severe)
https://www.sp-ps.ch/sites/all/themes/sp_ps/logo.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: referendum, switzerland, initiative, signature, signatures...
demovox/demovox.php Passed 13 tests
The primary PHP file in "demovox" version 2.6.1 is used by WordPress to initiate all plugin functionality
125 characters long description:
demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.
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
Everything looks great! No dangerous files found in this plugin42,465 lines of code in 369 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 1,101 | 2,955 | 41,573 |
JSON | 137 | 0 | 0 | 542 |
JavaScript | 3 | 2 | 228 | 162 |
Markdown | 2 | 37 | 0 | 126 |
XML | 2 | 0 | 0 | 32 |
make | 1 | 9 | 4 | 24 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 56 | 100.00% |
▷ Final classes | 7 | 12.50% |
Methods | 396 | |
▷ Static methods | 155 | 39.14% |
▷ Public methods | 309 | 78.03% |
▷ Protected methods | 62 | 15.66% |
▷ Private methods | 25 | 6.31% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 52 | |
▷ Global constants | 2 | 3.85% |
▷ Class constants | 50 | 96.15% |
▷ Public constants | 50 | 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
There were not PNG files found in your plugin