73% theme-folders

Code Review | Theme Folders

WordPress plugin Theme Folders scored73%from 54 tests.

About plugin

  • Plugin page: theme-folders
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Oct 30, 2016
  • Number of updates: 13
  • Update frequency: every 80.8 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.86ms] Passed 4 tests

Analyzing server-side resources used by Theme Folders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.94 ▼0.45
Dashboard /wp-admin3.33 ▲0.0249.23 ▲1.01
Posts /wp-admin/edit.php3.38 ▲0.0245.76 ▼2.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.86 ▼5.10
Media Library /wp-admin/upload.php3.25 ▲0.0237.44 ▲4.36
Theme Folders /wp-admin/themes.php?page=themes-in-folders3.1931.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Theme Folders: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.491.97 ▲0.2444.55 ▲3.57
Dashboard /wp-admin2,202 ▲255.65 ▲0.0096.18 ▲8.0143.02 ▼0.26
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0135.26 ▼2.3132.25 ▼3.29
Add New Post /wp-admin/post-new.php1,529 ▼223.43 ▲0.29667.42 ▲8.1452.93 ▼11.76
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.0198.82 ▲0.6744.75 ▼2.77
Theme Folders /wp-admin/themes.php?page=themes-in-folders1,0402.0031.6636.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=themes-in-folders
    • > Notice in wp-content/plugins/theme-folders/theme-folders.php+77
    Undefined offset: 7

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 get_option() in wp-content/plugins/theme-folders/theme-folders.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/themes.php?page=themes-in-folders
    • > Network (severe)
    wp-content/wp-content/index.php/screenshot.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/themes.php?page=themes-in-folders
    • > Network (severe)
    wp-content/wp-content/plugins/screenshot.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/themes.php?page=themes-in-folders
    • > Network (severe)
    wp-content/wp-content/themes/screenshot.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/themes.php?page=themes-in-folders
    • > Network (severe)
    wp-content/wp-content/uploads/screenshot.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: development, themes folder labeling, categories, category, themes label

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

"Theme Folders" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
21 characters long description:
Add folders to themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171276

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions2
▷ Named functions2100.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
No PNG files were detected