Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼4.37ms] Passed 4 tests
An overview of server-side resources used by Media Folder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.71 ▼2.00 |
Dashboard /wp-admin | 3.56 ▲0.26 | 54.10 ▲4.19 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.11 ▼3.34 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 89.40 ▼16.32 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 44.53 ▲6.77 |
Media Folders /wp-admin/edit.php?post_type=folder | 3.48 | 42.21 |
Add Folder /wp-admin/post-new.php?post_type=folder | 3.56 | 49.79 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=folder | 3.42 | 36.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
category_children |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Media Folder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.52 ▼1.12 | 7.95 ▲6.34 | 42.12 ▲3.75 |
Dashboard /wp-admin | 2,230 ▲50 | 5.65 ▲0.08 | 94.26 ▼5.33 | 42.47 ▼2.94 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.16 ▲0.17 | 35.56 ▼4.33 | 34.18 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.19 ▼0.04 | 651.90 ▼46.92 | 58.90 ▲1.42 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.08 ▼0.15 | 101.09 ▼14.83 | 42.86 ▼5.41 |
Media Folders /wp-admin/edit.php?post_type=folder | 1,163 | 2.64 | 50.00 | 29.06 |
Add Folder /wp-admin/post-new.php?post_type=folder | 1,741 | 3.55 | 74.39 | 34.51 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=folder | 1,490 | 2.12 | 32.45 | 35.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- category_children
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/media-folder/admin/partials/media-folder-admin-display.php
- > /wp-content/plugins/media-folder/public/partials/media-folder-public-display.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/media-folder/includes/class-media-folder-list-table.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/media-folder/includes/class-media-folder-list-table.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-folder/includes/class-media-folder-list-table.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: custom post type media slider attachements
media-folder/media-folder.php Passed 13 tests
This is the main PHP file of "Media Folder" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
Attach media files to a common parent post, easily upload and list the content of the folder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin434 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 218 | 688 | 428 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin