Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼262.33ms] Passed 4 tests
A check of server-side resources used by Prices Only Members for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 29.61 ▲8.60 |
Dashboard /wp-admin | 3.13 ▲0.08 | 47.46 ▲0.82 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 44.11 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 92.18 ▼1,040.24 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 29.69 ▼10.56 |
Prices Only Members /wp-admin/admin.php?page=dc-pomfw-menu-page | 3.06 | 24.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dc_pomfw_position |
dc_pomfw_activate |
dc_pomfw_register_text |
dc_pomfw_login_text |
dc_pomfw_register_link |
dc_pomfw_login_link |
dc_pomfw_message |
Browser metrics Passed 4 tests
An overview of browser requirements for Prices Only Members for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲85 | 15.86 ▲0.33 | 8.24 ▼1.47 | 47.50 ▼3.18 |
Dashboard /wp-admin | 2,951 ▲101 | 6.14 ▲0.32 | 137.61 ▼0.14 | 104.63 ▲3.18 |
Posts /wp-admin/edit.php | 2,720 ▲14 | 2.83 ▲0.13 | 70.24 ▲6.68 | 89.04 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,680 ▼173 | 18.79 ▼0.33 | 358.28 ▼17.67 | 105.15 ▲0.10 |
Media Library /wp-admin/upload.php | 1,791 ▲16 | 5.11 ▲0.08 | 146.98 ▼4.27 | 112.11 ▼2.67 |
Prices Only Members /wp-admin/admin.php?page=dc-pomfw-menu-page | 1,277 | 2.09 | 62.20 | 80.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/prices-only-members-for-woocommerce/public/partials/dc-pomfw-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prices-only-members-for-woocommerce/admin/partials/dc-pomfw-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
prices-only-members-for-woocommerce/dc-pomfw.php 85% from 13 tests
"Prices Only Members for Woocommerce" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("prices-only-members-for-woocommerce.php" instead of "dc-pomfw.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected441 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 595 | 362 |
PO File | 1 | 22 | 22 | 73 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin