83% brandfolder

Code Review | Brandfolder - Digital Asset Management Simplified.

WordPress plugin Brandfolder - Digital Asset Management Simplified. scored83%from 54 tests.

About plugin

  • Plugin page: brandfolder
  • Plugin version: 5.0.16
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2013
  • Latest release: Dec 19, 2022
  • Number of updates: 125
  • Update frequency: every 30.9 days
  • Top authors: parterburn (57.6%)brandfolder (43.2%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /13,766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.98ms] Passed 4 tests

Analyzing server-side resources used by Brandfolder - Digital Asset Management Simplified.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0527.89 ▼10.34
Dashboard /wp-admin3.33 ▲0.0249.81 ▲5.68
Posts /wp-admin/edit.php3.38 ▲0.0242.93 ▼5.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.44 ▲0.99
Media Library /wp-admin/upload.php3.25 ▲0.0237.71 ▲2.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Brandfolder - Digital Asset Management Simplified.
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.48 ▼0.939.80 ▲8.3243.09 ▼3.68
Dashboard /wp-admin2,195 ▲185.59 ▼0.0887.14 ▼1.6942.95 ▲3.31
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0536.15 ▼1.4535.00 ▼2.41
Add New Post /wp-admin/post-new.php2,910 ▲1,38419.97 ▼2.96730.45 ▲75.0153.41 ▼3.38
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.06103.89 ▲2.4443.39 ▲0.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandfolder/brandfolder-integration.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in brandfolder/assets to your readme.txt
The official readme.txt might help

brandfolder/brandfolder-integration.php 85% from 13 tests

The entry point to "Brandfolder - Digital Asset Management Simplified." version 5.0.16 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("brandfolder.php" instead of "brandfolder-integration.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin40,843 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JSON30039,869
JavaScript1381100707
PHP21524127
Sass2230108
Markdown18030
CSS2202

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin