84% special-folder

Code Review | Special Folder

WordPress plugin Special Folder scored 84% from 54 tests.

About plugin

  • Plugin page: special-folder
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 16
  • Update frequency: every 137.3 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 811 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.95ms] Passed 4 tests

This is a short check of server-side resources used by Special Folder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.08 ▼3.00
Dashboard /wp-admin3.32 ▲0.0144.35 ▼17.15
Posts /wp-admin/edit.php3.37 ▲0.0146.92 ▲2.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.22 ▼20.93
Media Library /wp-admin/upload.php3.24 ▲0.0134.20 ▲1.28

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Special Folder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.35 ▼0.971.69 ▼0.6042.07 ▼12.26
Dashboard /wp-admin2,223 ▲355.98 ▲1.10114.90 ▼6.5377.92 ▲32.92
Posts /wp-admin/edit.php2,106 ▲141.99 ▼0.0742.39 ▼11.9334.62 ▼7.11
Add New Post /wp-admin/post-new.php1,683 ▲14822.08 ▼1.20627.32 ▼135.3752.19 ▼15.49
Media Library /wp-admin/upload.php1,405 ▲204.13 ▼0.08101.98 ▼23.8747.96 ▼0.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • can_compress_scripts
    • special_folder_show_excerpt
    • special_folder_view
    • special_folder_show_image
    • widget_recent-posts
    • special_folder_ids
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/special-folder/index.php:16

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: special coverage, apps, technical publications, exclusive, edc...

special-folder/index.php 92% from 13 tests

Analyzing the main PHP file in "Special Folder" version 1.6
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("special-folder.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13210227
PO File1203458
CSS10016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/special_folder.png0.29KB0.42KB0.00%