10% candam-fotoware-editor-button-for-fotoweb8-base

Code Review | CanDAM-CntrButFW8Base

WordPress plugin CanDAM-CntrButFW8Base scored10%from 54 tests.

About plugin

  • Plugin page: candam-fotoware-e...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2017
  • Latest release: Mar 28, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: philmenu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /720 total downloads

Benchmarks

Plugin footprint 40% 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
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8Base.php+29
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.91MB] [CPU: ▼50.43ms] Passed 4 tests

Server-side resources used by CanDAM-CntrButFW8Base
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.27 ▼34.04
Dashboard /wp-admin2.09 ▼1.216.94 ▼41.61
Posts /wp-admin/edit.php2.10 ▼1.266.01 ▼40.99
Add New Post /wp-admin/post-new.php2.09 ▼3.795.34 ▼85.08
Media Library /wp-admin/upload.php2.09 ▼1.136.48 ▼29.54
Candam connector FW8-base /wp-admin/options-general.php?page=candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8BaseOptions.php2.107.67

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CanDAM-CntrButFW8Base
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.101.75 ▲0.1447.29 ▲3.88
Dashboard /wp-admin2,202 ▲285.63 ▼0.0588.42 ▼3.2738.48 ▼5.50
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0034.48 ▼3.1632.54 ▼4.65
Add New Post /wp-admin/post-new.php1,529 ▲322.83 ▼0.14606.55 ▼25.3663.60 ▼0.76
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.0296.60 ▼4.8743.63 ▼0.25
Candam connector FW8-base /wp-admin/options-general.php?page=candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8BaseOptions.php8301.9926.8528.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8Base.php+29
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8BaseOptions.php
    • > Notice in wp-content/plugins/candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8BaseOptions.php+101
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8Base.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wordpress plugins, fotoware, candam, editor button plugin, fotoweb 8

candam-fotoware-editor-button-for-fotoweb8-base/CanDAM-CntrButFW8Base.php 92% from 13 tests

The primary PHP file in "CanDAM-CntrButFW8Base" version 1.3.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("candam-fotoware-editor-button-for-fotoweb8-base.php" instead of "CanDAM-CntrButFW8Base.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected491 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS13963384
PHP24830101
JavaScript1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin