Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.00ms] 75% from 4 tests
A check of server-side resources used by My Quota
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,227.18ms on /wp-admin/admin.php?page=myquota-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.40 ▲0.47 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.38 ▼1.58 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.13 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.95 ▼15.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 33.13 ▲0.40 |
My Quota /wp-admin/admin.php?page=myquota | 3.27 | 33.88 |
Groups /wp-admin/admin.php?page=myquota-editor | 3.27 | 31.47 |
Settings /wp-admin/admin.php?page=myquota-settings | 3.31 | 1,227.18 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_quotas |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
dropstr_api |
myquota_notifications |
theysaidso_admin_options |
myquota_db_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Quota
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.27 ▼1.11 | 1.69 ▼0.25 | 43.78 ▲2.29 |
Dashboard /wp-admin | 2,240 ▲51 | 4.94 ▲0.04 | 98.79 ▼19.73 | 84.61 ▲35.59 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 1.99 ▼0.02 | 37.98 ▼3.21 | 34.12 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.36 ▲5.77 | 667.84 ▲75.80 | 59.37 ▲1.85 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▼0.03 | 97.17 ▼0.52 | 75.45 ▲30.20 |
My Quota /wp-admin/admin.php?page=myquota | 972 | 2.17 | 28.05 | 26.91 |
Groups /wp-admin/admin.php?page=myquota-editor | 896 | 2.02 | 24.64 | 29.86 |
Settings /wp-admin/admin.php?page=myquota-settings | 1,132 | 2.03 | 24.27 | 31.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_quotas
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- myquota_db_version
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- dropstr_api
- myquota_notifications
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/inc/core.php:10
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/inc/roster_class.php:9
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_core' not found in wp-content/plugins/my-quota/addons/wordpress-seo.php:9
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/inc/archive_class.php:9
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/editor.php:37
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/addons/publishpress.php:9
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/inc/add_ons.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-quota/inc/notifications.php:25
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_core' not found in wp-content/plugins/my-quota/settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'my_quota_dropstr_quota_list' not found in wp-content/plugins/my-quota/inc/errors.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Quota Roster - Show all your users and their quota requirements (Limited view based on editor role).), #2 (Quota Policy - Apply polices for your quota groups.), #3 (Quota Groups - Create groups for your writers and apply quota policies.)
my-quota/index.php 85% from 13 tests
The principal PHP file in "My Quota" v. 1.0.8 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("my-quota.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,659 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 3,015 | 1,593 | 5,532 |
CSS | 1 | 11 | 0 | 88 |
JavaScript | 1 | 7 | 4 | 39 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 125.56 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 527.00 |
Average method complexity | 10.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 55.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 51 | 44.35% |
Functions | 12 | |
▷ Named functions | 12 | 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
4 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 20.88KB | 8.87KB | ▼ 57.51% |
images/icon.png | 52.08KB | 0.61KB | ▼ 98.82% |
screenshot-1.png | 58.18KB | 24.67KB | ▼ 57.61% |
screenshot-2.png | 159.62KB | 70.55KB | ▼ 55.80% |