Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.71ms] Passed 4 tests
This is a short check of server-side resources used by One-Time Products Purchases for Woo - Free by WP Masters
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 53.59 ▲4.98 |
Dashboard /wp-admin | 3.35 ▲0.05 | 53.80 ▼1.06 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.29 ▼3.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.31 ▼3.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.14 ▲6.98 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by One-Time Products Purchases for Woo - Free by WP Masters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 15.36 ▲1.11 | 1.69 ▼0.30 | 42.75 ▼4.83 |
Dashboard /wp-admin | 2,224 ▲47 | 6.99 ▲1.30 | 98.84 ▲0.73 | 42.31 ▼1.94 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 4.18 ▲2.17 | 44.42 ▲6.43 | 35.47 ▼2.56 |
Add New Post /wp-admin/post-new.php | 6,273 ▲4,745 | 23.25 ▲0.15 | 957.13 ▲259.67 | 36.75 ▼19.02 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 6.52 ▲2.38 | 108.69 ▼3.63 | 42.24 ▼2.46 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpm-only-one-buy-by-all-time-free-by-wp-masters/templates/admin/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpm-only-one-buy-by-all-time-free-by-wp-masters/wpm-only-one-buy-all-time.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
9 plugin tags: single purchase, restrict buy, product buy once, one buy, limit product buy...
wpm-only-one-buy-by-all-time-free-by-wp-masters/wpm-only-one-buy-all-time.php 85% from 13 tests
The principal PHP file in "One-Time Products Purchases for Woo - Free by WP Masters" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpm-only-one-buy-by-all-time-free-by-wp-masters.php" instead of "wpm-only-one-buy-all-time.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected11,057 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
CSS | 3 | 143 | 5 | 884 |
PHP | 2 | 30 | 57 | 356 |
JavaScript | 3 | 10 | 5 | 265 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/logo.png | 11.32KB | 4.55KB | ▼ 59.79% |