10% access-fotoweb-media

Code Review | FotoWare Wordpress Lite

WordPress plugin FotoWare Wordpress Lite scored 10% from 54 tests.

About plugin

  • Plugin page: access-fotoweb-media
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 5.8.1
  • First release: Mar 9, 2020
  • Latest release: Dec 7, 2021
  • Number of updates: 37
  • Update frequency: every 17.3 days
  • Top authors: viitorcloudvc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 445 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼1.075.06 ▼17.84
Dashboard /wp-admin1.79 ▼1.285.02 ▼33.17
Posts /wp-admin/edit.php1.79 ▼1.324.81 ▼25.91
Add New Post /wp-admin/post-new.php1.79 ▼3.654.86 ▼798.20
Media Library /wp-admin/upload.php1.79 ▼1.215.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11215.98 ▼0.055.01 ▼0.0881.02 ▲5.79
Dashboard /wp-admin2,952 ▲565.99 ▼0.19116.45 ▼16.21166.95 ▼4.83
Posts /wp-admin/edit.php2,728 ▼153.25 ▲0.0165.55 ▲3.86138.31 ▲0.58
Add New Post /wp-admin/post-new.php3,822 ▲8717.91 ▼0.71441.27 ▲10.85162.33 ▲2.16
Media Library /wp-admin/upload.php1,768 ▲165.51 ▼0.03137.88 ▼0.56195.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

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:
LanguageFilesBlank linesComment linesLines of code
SVG37318,192
PHP87193433
CSS1210189

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 code0.22
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/fotoweb_icon.png11.06KB6.50KB▼ 41.21%
images/fotoweb_window.png139.56KB41.85KB▼ 70.02%
images/fotoware-image-to-editor.png116.29KB42.01KB▼ 63.87%
images/upload-to-fotoware.png54.88KB15.79KB▼ 71.23%
logout.png0.44KB0.57KB0.00%