Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼6.22ms] Passed 4 tests
Analyzing server-side resources used by Assets Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.23 ▼5.31 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.67 ▼1.65 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 42.42 ▼4.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 77.16 ▼12.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.78 ▲0.46 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=asset | 3.27 | 32.05 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=asset | 3.26 | 32.72 |
Add New /wp-admin/post-new.php?post_type=asset | 3.41 | 58.67 |
Assets Manager /wp-admin/edit.php?post_type=asset | 3.33 | 37.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_assets_log |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Assets Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.45 ▲0.10 | 1.78 ▲0.18 | 41.61 ▲2.95 |
Dashboard /wp-admin | 2,224 ▲44 | 5.55 ▼0.16 | 82.02 ▼8.19 | 37.65 ▼6.22 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.09 | 33.61 ▼6.69 | 33.09 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.16 ▼0.34 | 679.52 ▲27.92 | 50.11 ▼11.78 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.22 ▼0.05 | 97.14 ▲4.26 | 45.40 ▲4.56 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=asset | 1,354 | 2.12 | 31.09 | 31.21 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=asset | 1,490 | 2.13 | 27.39 | 31.16 |
Add New /wp-admin/post-new.php?post_type=asset | 2,459 | 7.83 | 177.79 | 61.37 |
Assets Manager /wp-admin/edit.php?post_type=asset | 1,145 | 1.97 | 29.98 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_assets_log
- The uninstall procedure has failed, leaving 7 options in the database
- category_children
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/assets-manager/wp-assets-manager.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: admin, content, links, share file, asset management...
assets-manager/wp-assets-manager.php 92% from 13 tests
"Assets Manager" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("assets-manager.php" instead of "wp-assets-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,114 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 182 | 435 | 741 |
JavaScript | 1 | 31 | 7 | 352 |
CSS | 1 | 1 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 97 | |
▷ Static methods | 2 | 2.06% |
▷ Public methods | 57 | 58.76% |
▷ Protected methods | 1 | 1.03% |
▷ Private methods | 39 | 40.21% |
Functions | 0 | |
▷ Named functions | 0 | 0.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