Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/access-fotoweb-media/fotoware-main.php+29
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.93MB] [CPU: ▼47.98ms] Passed 4 tests
An overview of server-side resources used by FotoWare Wordpress Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.22 ▼31.88 |
Dashboard /wp-admin | 2.07 ▼1.23 | 7.02 ▼38.65 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 8.09 ▼38.45 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 8.80 ▼82.93 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 8.22 ▼27.24 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for FotoWare Wordpress Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.22 ▼1.16 | 1.65 ▼0.25 | 40.08 ▼3.86 |
Dashboard /wp-admin | 2,227 ▲39 | 4.91 ▼0.16 | 101.88 ▼3.38 | 38.36 ▼2.87 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.05 ▲0.01 | 39.67 ▲0.11 | 33.80 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 22.03 ▼1.30 | 650.48 ▼36.40 | 52.82 ▼7.11 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.25 ▲0.05 | 104.60 ▲2.35 | 45.11 ▲0.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/access-fotoweb-media/fotoware-main.php+29
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/access-fotoweb-media/fotoware-selection.php
- > /wp-content/plugins/access-fotoweb-media/fotoware-logout.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: fw_url in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 32
- > PHP Notice
Undefined variable: fotoweb_url in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 28
- > PHP Notice
Undefined index: access_token in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 71
- > PHP Notice
Undefined variable: client_id in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 28
- > PHP Notice
Undefined variable: state in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 28
- > PHP Notice
Undefined variable: redirect_uri in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 28
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: dam, upload image from fotoware, fotoware
access-fotoweb-media/fotoware-media-access.php 92% from 13 tests
"FotoWare Wordpress Lite" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("access-fotoweb-media.php" instead of "fotoware-media-access.php")
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
Everything looks great! No dangerous files found in this plugin18,814 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 7 | 3 | 18,192 |
PHP | 8 | 71 | 93 | 433 |
CSS | 1 | 21 | 0 | 189 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
7 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 |
images/fotoweb_icon.png | 11.06KB | 6.50KB | ▼ 41.21% |
images/fotoware-logo.png | 4.41KB | 4.12KB | ▼ 6.51% |
images/upload-to-fotoware.png | 54.88KB | 15.79KB | ▼ 71.23% |
images/fotoware-image-to-editor.png | 116.29KB | 42.01KB | ▼ 63.87% |
logout.png | 0.44KB | 0.57KB | 0.00% |