Benchmarks
Plugin footprint 65% 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.75MB] [CPU: ▲0.38ms] Passed 4 tests
Analyzing server-side resources used by CatFolders - WP Media Folders
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 42.53 ▲4.19 |
Dashboard /wp-admin | 4.13 ▲0.82 | 58.92 ▲13.86 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 48.42 ▲9.63 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 87.48 ▼21.82 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 41.61 ▲9.51 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_catfolders_posts |
wp_catfolders |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
catf_first_folder |
catf_version |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by CatFolders - WP Media Folders
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲300 | 15.20 ▲0.58 | 1.68 ▼0.10 | 30.86 ▼12.99 |
Dashboard /wp-admin | 2,452 ▲272 | 6.52 ▲0.93 | 109.50 ▲19.68 | 94.73 ▲59.75 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.19 ▲1.16 | 45.88 ▲6.47 | 35.90 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,844 ▲318 | 24.36 ▲1.39 | 685.69 ▲79.71 | 39.15 ▼14.98 |
Media Library /wp-admin/upload.php | 1,965 ▲565 | 9.01 ▲4.82 | 253.81 ▲155.38 | 50.84 ▲8.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_catfolders_posts
- wp_catfolders
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- catf_version
- widget_recent-posts
- widget_recent-comments
- catf_first_folder
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'TenQuality\\Data\\Contracts\\Arrayable' not found in wp-content/plugins/catfolders/vendor/10quality/php-data-model/src/Collection.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/tests/cases/QueryBuilderStatementsTest.php:14
- > PHP Fatal error
Trait 'CatFolders\\Traits\\Singleton' not found in wp-content/plugins/catfolders/includes/Internals/Modules/MediaMeta.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/tests/cases/TraitModelTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/php-data-model/tests/cases/CollectionTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/tests/cases/AbstractModelTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'CatFolders\\Core\\Base' not found in wp-content/plugins/catfolders/includes/Backend/Enqueue.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/tests/cases/QueryBuilderOperationsTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'TenQuality\\Data\\Model' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/src/Abstracts/DataModel.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/catfolders/vendor/10quality/wp-query-builder/tests/cases/SanitizationTest.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: folders, media library, wordpress media library folders, wp media folders, media folder
catfolders/catfolders.php Passed 13 tests
Analyzing the main PHP file in "CatFolders - WP Media Folders" version 2.3.1
114 characters long description:
Organize and manage your files with WordPress media library folders. Unlimitedly fast, flexible, and professional.
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
Good job! No executable or dangerous file extensions detected8,287 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 725 | 2,593 | 6,471 |
PO File | 3 | 348 | 376 | 783 |
JavaScript | 6 | 58 | 243 | 441 |
JSON | 3 | 0 | 0 | 198 |
Markdown | 2 | 74 | 0 | 184 |
SVG | 2 | 22 | 0 | 174 |
XML | 2 | 0 | 0 | 31 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 446 | |
▷ Static methods | 83 | 18.61% |
▷ Public methods | 407 | 91.26% |
▷ Protected methods | 7 | 1.57% |
▷ Private methods | 32 | 7.17% |
Functions | 36 | |
▷ Named functions | 9 | 25.00% |
▷ Anonymous functions | 27 | 75.00% |
Constants | 18 | |
▷ Global constants | 12 | 66.67% |
▷ Class constants | 6 | 33.33% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin