79% wicked-folders

Code Review | Wicked Folders

WordPress plugin Wicked Folders scored79%from 54 tests.

About plugin

  • Plugin page: wicked-folders
  • Plugin version: 2.18.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Nov 9, 2023
  • Number of updates: 206
  • Update frequency: every 11.7 days
  • Top authors: wickedplugins (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

20,000+ active /400,781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.52ms] Passed 4 tests

A check of server-side resources used by Wicked Folders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.30 ▼1.02
Dashboard /wp-admin3.39 ▲0.0946.58 ▼2.54
Posts /wp-admin/edit.php3.45 ▲0.0945.22 ▼0.62
Add New Post /wp-admin/post-new.php6.01 ▲0.1390.08 ▼5.89
Media Library /wp-admin/upload.php3.32 ▲0.0936.79 ▲4.27
Wicked Folders /wp-admin/options-general.php?page=wicked_folders_settings3.3935.98

Server storage [IO: ▲2.28MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 12 new options
New WordPress options
wicked_folders_db_version
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
wicked_folders_tax_name_migration_done
wicked_folders_post_types
wicked_folders_dynamic_folder_post_types
wicked_folders_taxonomies
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wicked Folders
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.32 ▲0.081.78 ▲0.0738.14 ▼3.94
Dashboard /wp-admin2,199 ▲215.63 ▼0.0491.82 ▼21.9740.98 ▼2.09
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0739.20 ▲2.8235.46 ▲2.56
Add New Post /wp-admin/post-new.php1,529 ▲323.69 ▲0.14666.94 ▼28.0657.65 ▲10.96
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0595.92 ▼7.7839.41 ▼4.53
Wicked Folders /wp-admin/options-general.php?page=wicked_folders_settings1,1012.1323.6437.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 12 options in the database
    • theysaidso_admin_options
    • wicked_folders_enable_folder_pages
    • widget_theysaidso_widget
    • wicked_folders_tax_name_migration_done
    • widget_recent-comments
    • wicked_folders_dynamic_folder_post_types
    • wicked_folders_db_version
    • wicked_folders_post_types
    • can_compress_scripts
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-folders.php
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-folders-object-collection.php
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-common.php
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-folders-ajax.php
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-folders-admin.php
    • > /wp-content/plugins/wicked-folders/lib/class-wicked-folders-screen-state.php
    • > /wp-content/plugins/wicked-folders/wicked-folders.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Dynamic_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-date-dynamic-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Dynamic_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-unassigned-dynamic-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Dynamic_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-term-dynamic-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-term-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wicked-folders/admin-templates/settings-page-general.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Dynamic_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-post-hierarchy-dynamic-folder.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Dynamic_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-author-dynamic-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wicked-folders/admin-templates/object-folder-pane.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Wicked_Folders_Folder' not found in wp-content/plugins/wicked-folders/lib/class-wicked-folders-dynamic-folder.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wicked-folders/admin-templates/folder-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: tree view, folders, custom post type organization, page organization, media library folders...

wicked-folders/wicked-folders.php Passed 13 tests

"Wicked Folders" version 2.18.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Organize your pages into folders.

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
Everything looks great! No dangerous files found in this plugin24,835 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript673,3771,02512,535
PHP209951,0795,097
CSS54412324,532
SVG1002,671

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity39.20
▷ Minimum class complexity1.00
▷ Maximum class complexity264.00
Average method complexity4.66
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes538.46%
Methods159
▷ Static methods4930.82%
▷ Public methods14792.45%
▷ Protected methods10.63%
▷ Private methods116.92%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wicked-plugins-logo.png40.87KB12.55KB▼ 69.29%