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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.94 ▼0.45 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.23 ▲1.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.76 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.86 ▼5.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.44 ▲4.36 |
Theme Folders /wp-admin/themes.php?page=themes-in-folders | 3.19 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.49 | 1.97 ▲0.24 | 44.55 ▲3.57 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.00 | 96.18 ▲8.01 | 43.02 ▼0.26 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.01 | 35.26 ▼2.31 | 32.25 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.43 ▲0.29 | 667.42 ▲8.14 | 52.93 ▼11.76 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.01 | 98.82 ▲0.67 | 44.75 ▼2.77 |
Theme Folders /wp-admin/themes.php?page=themes-in-folders | 1,040 | 2.00 | 31.66 | 36.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 12 | 76 |
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 code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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