Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▲2.06ms] Passed 4 tests
Analyzing server-side resources used by Categories as Folders
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.14 ▼4.83 |
Dashboard /wp-admin | 3.35 ▲0.05 | 56.15 ▲8.52 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 51.21 ▲3.96 |
Add New Post /wp-admin/post-new.php | 5.19 ▼0.70 | 97.45 ▲0.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 50.27 ▲19.02 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=document | 3.27 | 53.42 |
Categories as Folders /wp-admin/options-general.php?page=categories-as-folders-setting-admin | 3.24 | 45.96 |
Todos os documentos /wp-admin/edit.php?post_type=document | 3.33 | 55.43 |
Novo /wp-admin/post-new.php?post_type=document | 3.20 | 44.40 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
category_children |
caf_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Categories as Folders
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 13.58 ▼0.79 | 6.12 ▲4.18 | 42.17 ▼0.17 |
Dashboard /wp-admin | 2,248 ▲60 | 5.92 ▲0.03 | 120.23 ▲7.07 | 44.29 ▲0.33 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 1.99 ▼0.00 | 43.09 ▲6.72 | 40.22 ▲8.67 |
Add New Post /wp-admin/post-new.php | 1,425 ▼108 | 17.51 ▼5.53 | 970.02 ▲338.30 | 72.26 ▲20.88 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.21 ▼0.11 | 162.37 ▼64.76 | 74.40 ▲3.23 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=document | 1,482 | 2.14 | 46.43 | 51.14 |
Categories as Folders /wp-admin/options-general.php?page=categories-as-folders-setting-admin | 865 | 2.04 | 41.68 | 47.31 |
Todos os documentos /wp-admin/edit.php?post_type=document | 1,118 | 1.96 | 66.17 | 64.64 |
Novo /wp-admin/post-new.php?post_type=document | 2,398 | 7.66 | 358.92 | 156.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- category_children
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- caf_settings
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=document
- > Notice in wp-content/plugins/categories-as-folders/admin/class-categories-as-folders-admin-meta.php+235
Undefined index: document_files_nonce
- > GET request to /wp-admin/post-new.php?post_type=document
- > Warning in wp-content/plugins/categories-as-folders/includes/CAF/Document.php+19
Illegal string offset 'display_media'
SRP 0% 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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/categories-as-folders/public/partials/categories-as-folders-public-display.php
- > /wp-content/plugins/categories-as-folders/admin/partials/categories-as-folders-admin-display.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/categories-as-folders/public/templates/breadcrumb.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/categories-as-folders/public/class-categories-as-folders-public.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/categories-as-folders/includes/class-categories-as-folders-settings.php:154
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/categories-as-folders/admin/class-categories-as-folders-admin-meta.php:265
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/categories-as-folders/admin/class-categories-as-folders-admin-meta.php:265
- > PHP Fatal error
Uncaught Error: Class 'CAF\\Folder' not found in wp-content/plugins/categories-as-folders/includes/CAF/Domain/Folder.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: media, documents, categories, posts
categories-as-folders/categories-as-folders.php Passed 13 tests
Analyzing the main PHP file in "Categories as Folders" version 1.0.0
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,349 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 445 | 836 | 1,293 |
CSS | 3 | 9 | 13 | 32 |
JSON | 1 | 0 | 0 | 18 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 20 | 18.18% |
▷ Public methods | 98 | 89.09% |
▷ Protected methods | 4 | 3.64% |
▷ Private methods | 8 | 7.27% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/folder-1.png | 18.74KB | 7.99KB | ▼ 57.34% |
public/img/folders-2.png | 25.80KB | 10.23KB | ▼ 60.36% |
public/img/pdf-1.png | 17.31KB | 9.58KB | ▼ 44.64% |
public/img/folders-1.png | 2.88KB | 2.10KB | ▼ 27.12% |
public/img/video-1.png | 55.71KB | 19.32KB | ▼ 65.31% |