78% manage-folders-and-labels-gravity-forms

Code Review | Manage Folders and Labels

WordPress plugin Manage Folders and Labels scored78%from 54 tests.

About plugin

  • Plugin page: manage-folders-an...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Jan 4, 2023
  • Number of updates: 19
  • Update frequency: every 5.0 days
  • Top authors: desolint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /415 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Manage Folders and Labels
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.81 ▼2.54
Dashboard /wp-admin3.31 ▲0.0050.50 ▼5.93
Posts /wp-admin/edit.php3.36 ▲0.0050.51 ▼4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.54 ▼8.61
Media Library /wp-admin/upload.php3.23 ▲0.0040.37 ▲1.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Manage Folders and Labels: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.44 ▲0.141.79 ▼0.2742.85 ▼1.50
Dashboard /wp-admin2,221 ▲154.82 ▼0.06107.90 ▲1.2442.86 ▼5.85
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0240.49 ▼1.9836.06 ▼2.30
Add New Post /wp-admin/post-new.php1,526 ▼517.80 ▼5.36622.46 ▼18.1654.54 ▼3.28
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.06103.44 ▼2.7745.08 ▼1.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/manage-folders-and-labels-gravity-forms/include/gflabel_settings.php
    • > /wp-content/plugins/manage-folders-and-labels-gravity-forms/include/gffolder_settings.php
    • > /wp-content/plugins/manage-folders-and-labels-gravity-forms/include/add_gflabel_settings.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/manage-folders-and-labels-gravity-forms/include/gf_labels_table.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/manage-folders-and-labels-gravity-forms/include/gf_folders_table.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: labels, folders, forms, gravity, gravityforms

manage-folders-and-labels-gravity-forms/index.php 77% from 13 tests

The primary PHP file in "Manage Folders and Labels" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "5.3")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("manage-folders-and-labels-gravity-forms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,382 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP92961421,270
PO File4272278723
JavaScript22813228
CSS2411161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png8.54KB4.29KB▼ 49.71%