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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.05ms] Passed 4 tests
Analyzing server-side resources used by Notify Odoo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.34 ▲1.42 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.05 ▼12.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.97 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.60 ▼23.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.58 ▼1.32 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_notifyodoo_notifications |
New WordPress options |
---|
widget_theysaidso_widget |
notifyodoo_allow_ip_address |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
notifyodoo_notify_about_new_order |
notifyodoo_last_access_ip_address |
notifyodoo_notify_about_new_customer |
widget_recent-comments |
notifyodoo_add_tracking_image |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Notify Odoo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.28 ▼1.09 | 1.79 ▲0.16 | 47.05 ▲5.37 |
Dashboard /wp-admin | 2,222 ▲40 | 5.85 ▼0.02 | 103.98 ▼2.43 | 40.38 ▼7.57 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.02 | 38.03 ▼4.55 | 32.81 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.27 ▲5.10 | 584.39 ▼49.05 | 57.06 ▲3.71 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▼0.02 | 100.07 ▲0.98 | 41.27 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: new order, woocommerce, export orders, odoo
notify-odoo/notify-odoo.php Passed 13 tests
The entry point to "Notify Odoo" version 1.0.0 is a PHP file that has certain tags in its header comment area
47 characters long description:
Notifies Odoo about a new order on WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected476 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 193 | 18 | 472 |
CSS | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 46 | |
▷ Static methods | 5 | 10.87% |
▷ Public methods | 40 | 86.96% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 5 | 10.87% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/adminhtml/web/no/screenshot_response.png | 27.19KB | 6.60KB | ▼ 75.74% |