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.00MB] [CPU: ▼1.03ms] Passed 4 tests
A check of server-side resources used by DeMomentSomTres WooCommerce Default Price
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.56 ▼0.86 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.13 ▼4.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.50 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.85 ▲2.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.20 ▼0.58 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for DeMomentSomTres WooCommerce Default Price
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.63 ▼0.74 | 1.79 ▼0.17 | 41.64 ▼6.57 |
Dashboard /wp-admin | 2,209 ▲24 | 4.87 ▼1.02 | 106.90 ▲4.01 | 41.11 ▲0.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.00 | 39.54 ▲5.70 | 35.77 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 18.42 ▼4.99 | 610.09 ▼23.90 | 48.35 ▼2.94 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.02 | 96.50 ▼10.27 | 42.17 ▼2.04 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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)
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/demomentsomtres-woocommerce-default-price/lib/class-tgm-plugin-activation.php:1910
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/demomentsomtres-woocommerce-default-price/demomentsomtres-wc-default-price.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: all posts, archives, category
demomentsomtres-woocommerce-default-price/demomentsomtres-wc-default-price.php 69% from 13 tests
"DeMomentSomTres WooCommerce Default Price" version 201711292000...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "201711292000...")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("demomentsomtres-woocommerce-default-price.php" instead of "demomentsomtres-wc-default-price.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin1,762 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 478 | 1,480 | 1,729 |
Markdown | 1 | 21 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 39.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 5 | 5.15% |
▷ Public methods | 77 | 79.38% |
▷ Protected methods | 20 | 20.62% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin