Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > 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.87MB] [CPU: ▼218.87ms] Passed 4 tests
An overview of server-side resources used by FotoWare Wordpress Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.07 | 5.06 ▼17.84 |
Dashboard /wp-admin | 1.79 ▼1.28 | 5.02 ▼33.17 |
Posts /wp-admin/edit.php | 1.79 ▼1.32 | 4.81 ▼25.91 |
Add New Post /wp-admin/post-new.php | 1.79 ▼3.65 | 4.86 ▼798.20 |
Media Library /wp-admin/upload.php | 1.79 ▼1.21 | 5.17 ▼18.18 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: no files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for FotoWare Wordpress Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲112 | 15.98 ▼0.05 | 5.01 ▼0.08 | 81.02 ▲5.79 |
Dashboard /wp-admin | 2,952 ▲56 | 5.99 ▼0.19 | 116.45 ▼16.21 | 166.95 ▼4.83 |
Posts /wp-admin/edit.php | 2,728 ▼15 | 3.25 ▲0.01 | 65.55 ▲3.86 | 138.31 ▲0.58 |
Add New Post /wp-admin/post-new.php | 3,822 ▲87 | 17.91 ▼0.71 | 441.27 ▲10.85 | 162.33 ▲2.16 |
Media Library /wp-admin/upload.php | 1,768 ▲16 | 5.51 ▼0.03 | 137.88 ▼0.56 | 195.02 ▲7.93 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/access-fotoweb-media/fotoware-main.php+29
Trying to access array offset on value of type bool
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)
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/access-fotoweb-media/fotoware-selection.php
- > /wp-content/plugins/access-fotoweb-media/fotoware-logout.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: client_id 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
Undefined index: fw_url in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 32
- > PHP Notice
Undefined index: access_token in wp-content/plugins/access-fotoweb-media/fotoware-selection.php on line 71
- > PHP Notice
Undefined variable: fotoweb_url 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
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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: upload image from fotoware, fotoware, dam
access-fotoweb-media/fotoware-media-access.php 92% from 13 tests
The main PHP script in "FotoWare Wordpress Lite" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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
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.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.38MB with 0.19MB 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/fotoweb_window.png | 139.56KB | 41.85KB | ▼ 70.02% |
images/fotoware-image-to-editor.png | 116.29KB | 42.01KB | ▼ 63.87% |
images/upload-to-fotoware.png | 54.88KB | 15.79KB | ▼ 71.23% |
logout.png | 0.44KB | 0.57KB | 0.00% |