Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/companion-map/scripts/db.inc+12
Undefined variable: table_prefix
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.79ms] Passed 4 tests
Server-side resources used by Companion-Map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 44.60 ▲4.30 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.93 ▲4.89 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.62 ▲1.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.02 ▲0.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 45.53 ▲11.62 |
csv-Datei importieren /wp-admin/admin.php?page=companion_map-Import | 3.29 | 57.88 |
Übersicht /wp-admin/admin.php?page=companion_map-Mitglieder | 3.29 | 36.05 |
Neue Firma hinzufügen /wp-admin/admin.php?page=companion_map-Mitglieder&action=add | 3.28 | 33.20 |
Konfiguration /wp-admin/admin.php?page=companion_map-Config | 3.28 | 31.68 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/companion-map/" and "wp-content/uploads/"
- (new file) wp-content/data/companion-map/.empty
Filesystem: 24 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_companion_map_mitglieder |
companion_map_mitglieder |
companion_map_config |
wp_companion_map_config |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Companion-Map: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 14.49 ▲0.11 | 6.46 ▲4.72 | 44.63 ▼4.07 |
Dashboard /wp-admin | 2,231 ▲43 | 5.90 ▲1.01 | 101.96 ▼6.80 | 78.17 ▲36.11 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.66 ▲0.51 | 43.91 ▲1.23 | 30.93 ▼4.34 |
Add New Post /wp-admin/post-new.php | 1,700 ▲167 | 23.27 ▲0.01 | 605.94 ▼71.57 | 38.19 ▼12.44 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 5.01 ▲0.80 | 107.32 ▲9.46 | 67.64 ▲20.11 |
csv-Datei importieren /wp-admin/admin.php?page=companion_map-Import | 899 | 2.24 | 38.21 | 31.42 |
Übersicht /wp-admin/admin.php?page=companion_map-Mitglieder | 1,050 | 2.27 | 31.36 | 23.63 |
Neue Firma hinzufügen /wp-admin/admin.php?page=companion_map-Mitglieder&action=add | 1,010 | 2.41 | 33.94 | 25.85 |
Konfiguration /wp-admin/admin.php?page=companion_map-Config | 994 | 2.57 | 30.82 | 30.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables were found after uninstall: 4 tables
- companion_map_config
- companion_map_mitglieder
- wp_companion_map_mitglieder
- wp_companion_map_config
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/index.phtml+22
Undefined index: search
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+51
Undefined index: unternehmen
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+56
Undefined index: ansprechpartner
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+61
Undefined index: strasse
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+66
Undefined index: plz
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+71
Undefined index: ort
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+76
Undefined index: telefon
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+81
Undefined index: fax
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+86
Undefined index: email
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+91
Undefined property: m1\usv\MitgliederController::$arData
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=companion_map-Config
- > Notice in wp-content/plugins/companion-map/views/Config/index.phtml+110
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+100
Undefined index: gps-lat
- > GET request to /wp-admin/admin.php?page=companion_map-Mitglieder&action=add
- > Notice in wp-content/plugins/companion-map/views/Mitglieder/add.phtml+105
Undefined index: gps-lon
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=companion_map-Config
- > Notice in wp-content/plugins/companion-map/views/Config/index.phtml+110
Undefined property: m1\usv\ConfigController::$arData
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'm1\\usv\\SystemController' not found in wp-content/plugins/companion-map/controllers/ConfigController.class.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/companion-map/companion-map.php on line 13
- > PHP Warning
require_once(ABSPATHwp-content/plugins/companion-map/scripts/db.inc): failed to open stream: No such file or directory in wp-content/plugins/companion-map/companion-map.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'm1\\usv\\SystemController' not found in wp-content/plugins/companion-map/controllers/MitgliederController.class.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-content/plugins/companion-map/scripts/db.inc' (include_path='.:/usr/share/php') in wp-content/plugins/companion-map/companion-map.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'm1\\usv\\SystemController' not found in wp-content/plugins/companion-map/controllers/ImportController.class.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=companion_map-Config
- > Console-api (warning) in unknown
http://maps.google.com/maps/api/js?key&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Plugin Backend new), #2 (Plugin Frontend Overview), #3 (CSV-Import upload form)
- Donate link: Invalid url: ""
companion-map/companion-map.php Passed 13 tests
"Companion-Map" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
Darstellung von hinterlegten Adressen unterschiedlicher Filialstandorte in einer GoogleMaps-Karte und/oder in Tabellenform
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 plugin1,555 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 628 | 190 | 1,513 |
CSS | 1 | 11 | 17 | 38 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gfx/logo.png | 0.38KB | 0.32KB | ▼ 15.17% |