Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.53ms] Passed 4 tests
A check of server-side resources used by User Awards
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 37.95 ▲1.54 |
Dashboard /wp-admin | 3.64 ▲0.33 | 47.24 ▲0.71 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 49.15 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 100.72 ▲0.15 |
Media Library /wp-admin/upload.php | 3.51 ▲0.27 | 38.04 ▲5.80 |
User Awards /wp-admin/edit.php?post_type=user_awards_cpt&page=user-awards-admin-view | 3.48 | 34.99 |
Awards /wp-admin/edit.php?post_type=user_awards_cpt | 3.55 | 39.95 |
Add New Award /wp-admin/post-new.php?post_type=user_awards_cpt | 3.69 | 48.97 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_user_awards |
New WordPress options |
---|
recovery_mode_email_last_sent |
db_upgraded |
theysaidso_admin_options |
user_awards_version |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for User Awards
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲139 | 13.26 ▼1.30 | 1.67 ▲0.12 | 40.27 ▼2.69 |
Dashboard /wp-admin | 2,291 ▲103 | 5.84 ▲0.94 | 95.84 ▼8.81 | 79.49 ▲35.23 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.11 ▲0.10 | 50.05 ▲9.34 | 34.60 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,610 ▲77 | 23.16 ▼0.13 | 717.87 ▲105.34 | 56.27 ▼6.08 |
Media Library /wp-admin/upload.php | 1,475 ▲84 | 4.18 ▼0.01 | 110.80 ▲10.60 | 45.46 ▲3.12 |
User Awards /wp-admin/edit.php?post_type=user_awards_cpt&page=user-awards-admin-view | 907 | 2.07 | 25.44 | 23.22 |
Awards /wp-admin/edit.php?post_type=user_awards_cpt | 1,151 | 2.00 | 30.98 | 29.71 |
Add New Award /wp-admin/post-new.php?post_type=user_awards_cpt | 1,486 | 1.91 | 22.26 | 35.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=user_awards_cpt
- > Error in wp-content/plugins/user-awards/src/Grammar/Trigger.php+58
Uncaught InvalidArgumentException: Trigger control must be a numeric if you're not testing equality in wp-content/plugins/user-awards/src/Grammar/Trigger.php:58
Stack trace:
#0 wp-content/plugins/user-awards/src/Grammar/Trigger.php(79): UserAwards\Grammar\Trigger->validateTriggerControl()
#1 wp-content/plugins/user-awards/src/Grammar/AutoParser.php(12): UserAwards\Grammar\Trigger->parse()
#2 wp-content/plugins/user-awards/src/Grammar/Trigger.php(27): UserAwards\Grammar\AutoParser->__construct()
#3 wp-content/plugins/user-awards/src/Grammar/PluginParser.php(18): UserAwards\Grammar\Trigger->__construct()
#4 wp-content/plugins/user-awards/src/Grammar/PluginParser.php(35): UserAwards\Grammar\PluginParser->setDefaultValues()
#5 wp-content/plugins/user-awards/src/PluginLogic/PostType/MetaBoxes.php(131): UserAwards\Grammar\PluginParser->parse()
#6 wp-admin/includes/t
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-awards/user_awards.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-awards/src/PluginLogic/UserAwardsTable.php on line 6
- > 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/user-awards/src/PluginLogic/UserAwardsTable.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'UserAwards\\Grammar\\AutoParser' not found in wp-content/plugins/user-awards/src/Grammar/TriggerDescriptor.php:10
- > PHP Fatal error
Uncaught Error: Interface 'UserAwards\\Grammar\\ParserInterface' not found in wp-content/plugins/user-awards/src/Grammar/Core.php:44
- > PHP Fatal error
Uncaught Error: Class 'UserAwards\\Grammar\\Core' not found in wp-content/plugins/user-awards/src/Grammar/PluginParser.php:14
- > PHP Fatal error
Uncaught Error: Class 'UserAwards\\Grammar\\AutoParser' not found in wp-content/plugins/user-awards/src/Grammar/Trigger.php:23
- > 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/user-awards/src/PluginLogic/UserAwardsTable.php on line 6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=user_awards_cpt
- > Network (severe)
wp-content/plugins/user-awards/assets/icons/icon-16x16.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Donate link: Invalid url: "N/A"
user-awards/user_awards.php 85% from 13 tests
Analyzing the main PHP file in "User Awards" version 0.1.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-awards.php" instead of "user_awards.php")
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,765 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 364 | 633 | 1,622 |
JavaScript | 2 | 24 | 34 | 83 |
CSS | 1 | 18 | 11 | 59 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 11 | 10.58% |
▷ Public methods | 94 | 90.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 9.62% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin