Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼9.94ms] Passed 4 tests
A check of server-side resources used by Prices By User Role Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▼0.59 | 17.44 ▼22.65 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.66 ▼5.60 |
Posts /wp-admin/edit.php | 3.22 ▼0.13 | 33.77 ▼9.58 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.10 ▼1.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 43.81 ▲10.87 |
Prices by User Role Lite /wp-admin/admin.php?page=festi-user-role-prices-lite | 3.30 | 48.06 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Prices By User Role Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.67 ▼1.01 | 2.03 ▲0.40 | 40.53 ▼11.94 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▲0.87 | 104.64 ▲2.76 | 36.72 ▼0.75 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.02 | 35.68 ▼3.78 | 31.24 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲9 | 22.82 ▼0.47 | 592.57 ▼31.25 | 58.15 ▲1.77 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.01 | 98.42 ▼64.96 | 42.33 ▼9.98 |
Prices by User Role Lite /wp-admin/admin.php?page=festi-user-role-prices-lite | 1,100 | 2.04 | 25.81 | 26.71 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/prices-by-user-role-lite/prices-by-user-role-lite.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== prices-by-user-role-lite ===
) - Screenshots: Add images for these screenshots: #1 (Hide Add to Cart button for User Roles), #2 (Hide Prices for User Role)
prices-by-user-role-lite/prices-by-user-role-lite.php 92% from 13 tests
Analyzing the main PHP file in "Prices By User Role Lite" version 1.0
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin730 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 107 | 27 | 546 |
CSS | 2 | 26 | 0 | 172 |
JavaScript | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/list-style-image.png | 1.46KB | 0.31KB | ▼ 78.79% |