Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼0.73ms] Passed 4 tests
A check of server-side resources used by Digital Asset Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 41.72 ▲0.56 |
Dashboard /wp-admin | 3.69 ▲0.39 | 48.23 ▼1.67 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 51.23 ▲4.75 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 92.96 ▼2.54 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 36.39 ▲0.74 |
Asset Tags /wp-admin/edit-tags.php?taxonomy=asset-tags&post_type=dam-asset | 3.54 | 34.59 |
Asset Types /wp-admin/edit-tags.php?taxonomy=asset-type&post_type=dam-asset | 3.54 | 36.14 |
Add Asset /wp-admin/post-new.php?post_type=dam-asset | 3.79 | 54.61 |
All Assets /wp-admin/edit.php?post_type=dam-asset | 3.59 | 36.94 |
Tokens /wp-admin/edit-tags.php?taxonomy=dam_token&post_type=dam-asset | 3.54 | 35.75 |
Settings /wp-admin/edit.php?post_type=dam-asset&page=dam-settings | 3.52 | 32.31 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
dam_settings_options |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Digital Asset Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲232 | 13.75 ▼0.47 | 14.24 ▲12.48 | 39.69 ▼6.57 |
Dashboard /wp-admin | 2,239 ▲65 | 5.63 ▼0.05 | 87.75 ▼6.32 | 39.79 ▼3.47 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 1.98 ▼0.02 | 39.42 ▲3.62 | 35.62 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.24 ▲0.06 | 654.81 ▼23.95 | 51.04 ▼20.72 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.12 ▼0.07 | 99.01 ▲4.19 | 42.71 ▲1.74 |
Asset Tags /wp-admin/edit-tags.php?taxonomy=asset-tags&post_type=dam-asset | 1,296 | 2.13 | 27.03 | 29.18 |
Asset Types /wp-admin/edit-tags.php?taxonomy=asset-type&post_type=dam-asset | 1,321 | 2.15 | 29.06 | 31.57 |
Add Asset /wp-admin/post-new.php?post_type=dam-asset | 3,502 | 9.36 | 230.50 | 78.17 |
All Assets /wp-admin/edit.php?post_type=dam-asset | 1,192 | 1.91 | 30.89 | 30.85 |
Tokens /wp-admin/edit-tags.php?taxonomy=dam_token&post_type=dam-asset | 1,293 | 2.13 | 27.07 | 28.58 |
Settings /wp-admin/edit.php?post_type=dam-asset&page=dam-settings | 1,031 | 1.65 | 23.71 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- dam_settings_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/digital-asset-manager/admin/partials/digital-asset-manager-admin-display.php
- > /wp-content/plugins/digital-asset-manager/public/partials/digital-asset-manager-public-display.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/digital-asset-manager/public/templates/archive-asset.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/digital-asset-manager/public/partials/digital-asset-manager-single-asset.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/digital-asset-manager/admin/partials/digital-asset-manager-settings-page.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/digital-asset-manager/public/partials/digital-asset-manager-archive-asset.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/digital-asset-manager/admin/partials/digital-asset-manager-asset-metabox.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/digital-asset-manager/public/templates/single-asset.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function list_asset_categories_on_sidebar() in wp-content/plugins/digital-asset-manager/public/templates/sidebar-asset.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
10 plugin tags: download management, download plugin, document management, download manager, file manager...
digital-asset-manager/digital-asset-manager.php Passed 13 tests
The main PHP script in "Digital Asset Manager" version 1.1.0 is automatically included on every request by WordPress
70 characters long description:
Helps you to store and manage all of your digital assets in one place.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,764 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 392 | 1,093 | 1,673 |
CSS | 3 | 166 | 111 | 1,018 |
JavaScript | 3 | 18 | 63 | 73 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 53 | 91.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.62% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected