Benchmarks
Plugin footprint 39% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/portrait-archiv-shop/portraitarchiv-connector.php+24
Trying to get property 'token' of non-object
Server metrics [RAM: ▼0.57MB] [CPU: ▲213.71ms] 50% from 4 tests
This is a short check of server-side resources used by Portrait-Archiv.com Photostore
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 2,543.72ms on /wp-admin/admin.php?page=pawps_admin_menu_anleitung)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 213.71ms on /wp-admin/admin.php?page=pawps_admin_menu_anleitung)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.22 | 41.49 ▲5.81 |
Dashboard /wp-admin | 3.08 ▲0.03 | 529.44 ▲481.89 |
Posts /wp-admin/edit.php | 3.08 ▼0.02 | 539.20 ▲491.96 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.35 | 542.65 ▼124.81 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 2,536.84 ▲2,502.46 |
Portrait-Archiv /wp-admin/admin.php?page=pawps_admin_menu_mainpage | 3.08 | 556.09 |
Anmeldung /wp-admin/admin.php?page=pawps_admin_menu_anmeldung | 3.08 | 542.51 |
Verbindungsdaten /wp-admin/admin.php?page=pawps_admin_menu_grundeinstellungen | 3.08 | 2,537.53 |
Galerien /wp-admin/admin.php?page=pawps_admin_menu_shootings | 3.08 | 533.93 |
Anleitung /wp-admin/admin.php?page=pawps_admin_menu_anleitung | 3.08 | 2,543.72 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_PAWPS_CONFIG |
wp_PAWPS_SHOOTINGS |
New WordPress options |
---|
PAWPS_CFG_IMGCOUNT |
PAWPS_DB_VERSION |
PAWPS_HASH_REMOTE |
PAWPS_HASH |
PAWPS_USERID |
PAWPS_SYSTEMCOUNTRY |
PAWPS_LASTUPDATE_SHOOTINGS |
PAWPS_CFG_BOOTSTR_PUB |
PAWPS_CFG_BOOTSTR_ADMIN |
PAWPS_CRONJOB |
Browser metrics Passed 4 tests
A check of browser resources used by Portrait-Archiv.com Photostore
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,879 ▲283 | 16.36 ▲0.74 | 15.12 ▲5.00 | 73.53 ▲30.43 |
Dashboard /wp-admin | 3,023 ▲92 | 5.99 ▲0.02 | 147.93 ▼15.72 | 102.71 ▼4.04 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.62 ▼0.22 | 69.15 ▼0.22 | 70.33 ▼18.51 |
Add New Post /wp-admin/post-new.php | 1,729 ▲46 | 18.60 ▲0.07 | 414.46 ▲7.29 | 126.98 ▲22.19 |
Media Library /wp-admin/upload.php | 1,811 ▲4 | 5.04 ▲0.04 | 140.28 ▼15.41 | 144.56 ▲29.17 |
Portrait-Archiv /wp-admin/admin.php?page=pawps_admin_menu_mainpage | 1,148 | 2.10 | 62.62 | 62.25 |
Anmeldung /wp-admin/admin.php?page=pawps_admin_menu_anmeldung | 1,118 | 2.22 | 58.58 | 56.53 |
Verbindungsdaten /wp-admin/admin.php?page=pawps_admin_menu_grundeinstellungen | 1,226 | 2.47 | 54.46 | 73.12 |
Galerien /wp-admin/admin.php?page=pawps_admin_menu_shootings | 921 | 2.13 | 34.81 | 43.93 |
Anleitung /wp-admin/admin.php?page=pawps_admin_menu_anleitung | 1,273 | 2.34 | 64.97 | 65.88 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/portrait-archiv-shop/portraitarchiv-connector.php+4
Undefined index: PAWPS_CONNECTIONWORKING
- Zombie WordPress options were found after uninstall: 4 options
- PAWPS_CFG_IMGCOUNT
- PAWPS_CFG_BOOTSTR_PUB
- PAWPS_SYSTEMCOUNTRY
- PAWPS_CFG_BOOTSTR_ADMIN
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 errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pawps_admin_menu_anleitung
- > Notice in wp-content/plugins/portrait-archiv-shop/portraitarchiv-connector.php+15
Trying to get property 'success' of non-object
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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/portrait-archiv-shop/js/baseFunctions.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/portrait-archiv-shop/portraitarchiv-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function pawps_getUrl() in wp-content/plugins/portrait-archiv-shop/js/warenkorbList.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/portrait-archiv-shop/portraitarchiv-store.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/portrait-archiv-shop/portraitarchiv-configure.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/portrait-archiv-shop/js/imageDetails.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/portrait-archiv-shop/portraitarchiv-configure.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function pawps_getUrl() in wp-content/plugins/portrait-archiv-shop/js/galeriePublicList.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function pawps_getUrl() in wp-content/plugins/portrait-archiv-shop/js/warenkorbBox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/portrait-archiv-shop/js/galerieList.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: foto, bild, store, verkaufen, portrait-archiv...
portrait-archiv-shop/portraitarchiv-store.php 85% from 13 tests
Analyzing the main PHP file in "Portrait-Archiv.com Photostore" version 3.7
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("portrait-archiv-shop.php" instead of "portraitarchiv-store.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4,051 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 435 | 612 | 2,161 |
PHP | 17 | 368 | 130 | 1,782 |
JSON | 2 | 0 | 0 | 58 |
XML | 3 | 0 | 0 | 40 |
INI | 3 | 0 | 0 | 6 |
CSS | 2 | 0 | 5 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.38MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/eye.png | 1.00KB | 0.55KB | ▼ 45.42% |
resources/logo.png | 1.37KB | 1.24KB | ▼ 9.54% |
resources/unlock_stroke.png | 0.30KB | 0.29KB | ▼ 5.16% |
resources/docu/pawps_einrichten_2.png | 174.57KB | 53.75KB | ▼ 69.21% |
resources/pencil.png | 1.07KB | 0.52KB | ▼ 51.05% |