69% ifolders

Code Review | iFolders - Ultimate Folder Manager for Media, Pages, Posts & etc

WordPress plugin iFolders - Ultimate Folder Manager for Media, Pages, Posts & etc scored69%from 54 tests.

About plugin

  • Plugin page: ifolders
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 151
  • Update frequency: every 3.0 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,905 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.29ms] Passed 4 tests

Analyzing server-side resources used by iFolders - Ultimate Folder Manager for Media, Pages, Posts & etc
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.64 ▲3.98
Dashboard /wp-admin3.50 ▲0.1549.15 ▼12.98
Posts /wp-admin/edit.php3.61 ▲0.2551.28 ▲5.62
Add New Post /wp-admin/post-new.php6.10 ▲0.2191.70 ▼15.41
Media Library /wp-admin/upload.php3.42 ▲0.1940.11 ▲3.27
iFolders /wp-admin/options-general.php?page=ifolders-settings3.5335.45

Server storage [IO: ▲1.65MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 74 new files
Database: 6 new tables, 6 new options
New tables
wp_ifolders_folders
wp_ifolders_groups
wp_ifolders_access
wp_ifolders_rights
wp_ifolders_folder_types
wp_ifolders_attachments
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by iFolders - Ultimate Folder Manager for Media, Pages, Posts & etc
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲10814.46 ▲0.181.79 ▼0.0539.51 ▼0.44
Dashboard /wp-admin2,300 ▲1205.73 ▲0.0990.78 ▼6.2944.00 ▼3.64
Posts /wp-admin/edit.php2,130 ▲331.99 ▲0.0439.55 ▲5.1536.85 ▼2.75
Add New Post /wp-admin/post-new.php1,620 ▲9423.47 ▲0.39705.34 ▼15.5938.23 ▼33.24
Media Library /wp-admin/upload.php1,906 ▲5064.60 ▲0.37124.21 ▲13.8049.42 ▲1.78
iFolders /wp-admin/options-general.php?page=ifolders-settings3,1793.49111.0944.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ifolders/uninstall.php+7
    Constant IFOLDERS_PLUGIN_VERSION already defined
  • This plugin does not fully uninstall, leaving 6 tables in the database
    • wp_ifolders_rights
    • wp_ifolders_groups
    • wp_ifolders_folder_types
    • wp_ifolders_folders
    • wp_ifolders_access
    • wp_ifolders_attachments
  • The uninstall procedure has failed, 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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in ifolders/assets to your readme.txt
Please take inspiration from this readme.txt

ifolders/ifolders.php 92% from 13 tests

The main PHP script in "iFolders - Ultimate Folder Manager for Media, Pages, Posts & etc" version 1.6.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,492 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PO File111,7611,9054,873
PHP17356383,600
JavaScript100010
CSS6006
SVG1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity122.00
▷ Minimum class complexity2.00
▷ Maximum class complexity360.00
Average method complexity7.56
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1119.64%
▷ Public methods3664.29%
▷ Protected methods35.36%
▷ Private methods1730.36%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.72MB with 0.51MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/promo-logo.png9.96KB3.95KB▼ 60.34%
assets/img/chess.png2.77KB0.10KB▼ 96.26%
assets/img/folder-guru.png724.89KB6.18KB▼ 99.15%
assets/img/grab.png0.14KB0.10KB▼ 28.28%