Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.55MB] [CPU: ▼304.14ms] 75% from 4 tests
Server-side resources used by amr users
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,274.33ms on /wp-admin/admin.php?page=user-add-ons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.04 ▲1.52 | 90.58 ▲26.36 |
Dashboard /wp-admin | 4.97 ▲1.57 | 52.44 ▲8.20 |
Posts /wp-admin/edit.php | 5.20 ▲1.56 | 55.07 ▲4.51 |
Add New Post /wp-admin/post-new.php | 8.50 ▲1.54 | 118.47 ▼1,245.45 |
Media Library /wp-admin/upload.php | 4.92 ▲1.63 | 52.68 ▲16.20 |
User lists /wp-admin/users.php?page=userlists | 4.91 | 49.16 |
General & about /wp-admin/admin.php?page=amr-users | 4.84 | 41.32 |
Add ons /wp-admin/admin.php?page=user-add-ons | 5.07 | 1,274.33 |
+ updates /wp-admin/admin.php?page=amr_updates_page | 4.83 | 55.65 |
Server storage [IO: ▲0.78MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_amr_reportcache |
wp_amr_reportcachelogging |
New WordPress options |
---|
amr-users-main |
amr-users-save-prefix |
widget_amr_users_widget |
amr-users |
Browser metrics Passed 4 tests
Checking browser requirements for amr users
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲162 | 15.81 ▲0.17 | 8.10 ▲0.49 | 3.00 ▲0.06 |
Dashboard /wp-admin | 2,999 ▲112 | 6.40 ▼0.03 | 183.62 ▼14.65 | 196.95 ▼17.88 |
Posts /wp-admin/edit.php | 2,770 ▲85 | 3.43 ▼0.02 | 81.23 ▼1.08 | 174.08 ▼9.44 |
Add New Post /wp-admin/post-new.php | 1,686 ▲92 | 16.85 ▼3.48 | 607.38 ▼48.49 | 203.62 ▼11.40 |
Media Library /wp-admin/upload.php | 1,773 ▲81 | 5.72 ▲0.02 | 189.65 ▼0.70 | 267.91 ▲9.26 |
User lists /wp-admin/users.php?page=userlists | 1,100 | 2.68 | 69.55 | 123.70 |
General & about /wp-admin/admin.php?page=amr-users | 1,305 | 3.02 | 68.10 | 157.62 |
Add ons /wp-admin/admin.php?page=user-add-ons | 2,568 | 2.57 | 67.65 | 135.99 |
Excluded Meta Keys /wp-admin/ameta-admin-meta-keys.php | 26 | 1.14 | 0.04 | 29.64 |
Configure a list /wp-admin/ameta-admin-configure.php | 26 | 1.14 | 0.08 | 16.41 |
Cacheing /wp-admin/ameta-admin-cache-settings.php | 26 | 1.14 | 0.05 | 16.32 |
Users: Directory /wp-admin/ameta-list.php?ulist=2 | 26 | 1.14 | 0.05 | 17.00 |
Users: Details /wp-admin/ameta-list.php?ulist=1 | 26 | 1.14 | 0.05 | 19.57 |
Overview & tools /wp-admin/ameta-admin-overview.php | 26 | 1.14 | 0.05 | 15.83 |
+ updates /wp-admin/admin.php?page=amr_updates_page | 1,056 | 2.62 | 68.62 | 121.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 3 options in the database
- amr-users-main
- amr-users-save-prefix
- widget_amr_users_widget
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
Even though no errors were found, 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
Please take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/amr-users/includes/amr-users-widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amr-users/includes/ameta-includes.php:841
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amr-users/includes/ameta-upgrades.php:230
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amr-users/includes/ameta-includes.php:841
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/amr-users/amr-users.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/amr-users/includes/ameta-admin-prefix-check.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/ameta-admin-meta-keys.php
- > Network (severe)
wp-admin/ameta-admin-meta-keys.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/ameta-admin-configure.php
- > Network (severe)
wp-admin/ameta-admin-configure.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/ameta-admin-cache-settings.php
- > Network (severe)
wp-admin/ameta-admin-cache-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/ameta-list.php?ulist=2
- > Network (severe)
wp-admin/ameta-list.php?ulist=2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/ameta-list.php?ulist=1
- > Network (severe)
wp-admin/ameta-list.php?ulist=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/ameta-admin-overview.php
- > Network (severe)
wp-admin/ameta-admin-overview.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #13 in amr-users/assets to your readme.txt
amr-users/amr-users.php 92% from 13 tests
The main PHP file in "amr users" ver. 4.59.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 293 characters long)
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 plugin12,336 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,921 | 1,363 | 9,288 |
PO File | 2 | 1,180 | 2,002 | 2,623 |
CSS | 3 | 58 | 79 | 425 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 327 | |
▷ Named functions | 325 | 99.39% |
▷ Anonymous functions | 2 | 0.61% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/xls.png | 1.30KB | 1.35KB | 0.00% |
images/file_export.png | 0.87KB | 0.98KB | 0.00% |
images/spreadsheetrebuild.png | 1.30KB | 1.35KB | 0.00% |
images/rebuild.png | 1.28KB | 1.39KB | 0.00% |