84% fr-thumbnails-folder

Code Review | Fr Thumbnails Folder

WordPress plugin Fr Thumbnails Folder scored 84% from 54 tests.

About plugin

  • Plugin page: fr-thumbnails-folder
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Mar 3, 2020
  • Number of updates: 18
  • Update frequency: every 45.4 days
  • Top authors: fahrirusliyadi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,299 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.16ms] Passed 4 tests

Analyzing server-side resources used by Fr Thumbnails Folder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.93 ▼0.90
Dashboard /wp-admin3.38 ▲0.0845.46 ▼6.69
Posts /wp-admin/edit.php3.49 ▲0.1449.34 ▲5.10
Add New Post /wp-admin/post-new.php5.96 ▲0.0897.31 ▼3.14
Media Library /wp-admin/upload.php3.30 ▲0.0735.39 ▲2.08
Delete Thumbnails /wp-admin/tools.php?page=fr_thumbnails_folder_delete_image_sizes3.2732.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Fr Thumbnails Folder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.45 ▲0.132.24 ▲0.6944.52 ▼1.09
Dashboard /wp-admin2,210 ▲194.86 ▼1.04122.04 ▲20.0440.55 ▼3.29
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0240.42 ▲5.1234.71 ▲0.74
Add New Post /wp-admin/post-new.php1,536 ▲123.47 ▲0.26633.52 ▼64.1549.61 ▼3.44
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.0498.53 ▼11.8042.73 ▼4.73
Delete Thumbnails /wp-admin/tools.php?page=fr_thumbnails_folder_delete_image_sizes7902.0226.9528.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/fr-thumbnails-folder/admin/partials/delete-image-sizes-tool-page.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === fr-thumbnails-folder === )
The official readme.txt might help

fr-thumbnails-folder/fr-thumbnails-folder.php 92% from 13 tests

The main PHP file in "Fr Thumbnails Folder" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin474 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10151609425
JavaScript1209849

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.86
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods2666.67%
▷ Protected methods717.95%
▷ Private methods615.38%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin