Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/user-verification-and-discounts/buttons.php+6
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.65ms] Passed 4 tests
Server-side resources used by User Verification and Discounts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.72 ▼2.15 |
Dashboard /wp-admin | 3.42 ▲0.07 | 50.46 ▼11.95 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.11 ▼9.08 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.73 ▼11.86 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 37.57 ▼5.72 |
User Verification & Discounts /wp-admin/options-general.php?page=user-verification-and-discounts | 3.31 | 31.45 |
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: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
uvd-plugin-settings |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by User Verification and Discounts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.28 ▲0.13 | 1.86 ▲0.11 | 39.62 ▼1.57 |
Dashboard /wp-admin | 2,206 ▲29 | 5.64 ▲0.11 | 84.18 ▼9.37 | 40.94 ▼4.16 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▲0.03 | 37.18 ▼1.12 | 35.71 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.22 ▲0.46 | 724.21 ▲46.13 | 60.37 ▼1.50 |
Media Library /wp-admin/upload.php | 1,399 ▲2 | 4.13 ▼0.07 | 100.57 ▼6.99 | 41.89 ▼5.42 |
User Verification & Discounts /wp-admin/options-general.php?page=user-verification-and-discounts | 787 | 2.19 | 25.63 | 26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-verification-and-discounts/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-verification-and-discounts/buttons.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: academic, woocommerce, discount, students, verification...
user-verification-and-discounts/user-verification-and-discounts.php 92% from 13 tests
The primary PHP file in "User Verification and Discounts" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin16,389 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 15,709 |
PHP | 4 | 195 | 242 | 636 |
JavaScript | 2 | 5 | 5 | 40 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin