Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼295.37ms] Passed 4 tests
Server-side resources used by e-motion - Made4ecommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 52.78 ▲0.20 |
Dashboard /wp-admin | 3.43 ▲0.02 | 33.07 ▲0.47 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 37.10 ▲1.65 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 94.30 ▼1,181.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.44 ▼0.20 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for e-motion - Made4ecommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 16.21 ▲0.52 | 5.69 ▼0.08 | 3.00 ▲0.47 |
Dashboard /wp-admin | 2,895 ▲34 | 6.12 ▼0.03 | 114.52 ▼22.19 | 153.41 ▼4.66 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▼0.01 | 63.88 ▲3.08 | 137.41 ▼6.24 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.40 ▼5.15 | 389.92 ▼61.86 | 151.49 ▼8.85 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.03 | 143.88 ▲4.30 | 181.85 ▼6.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/e-motion-made4ecommerce/includes/data/data-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/e-motion-made4ecommerce/woo-includes/woo-functions.php:74
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: shipping, store, e-motion, woocommerce, shop...
e-motion-made4ecommerce/e-motion-m4ec.php 85% from 13 tests
The main PHP file in "e-motion - Made4ecommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-motion-made4ecommerce.php" instead of "e-motion-m4ec.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,268 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 353 | 322 | 901 |
SVG | 5 | 0 | 5 | 249 |
PO File | 1 | 37 | 42 | 118 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-emotion.png | 7.69KB | 4.23KB | ▼ 45.02% |