Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/media2commerce/php/m2c-settings.php+28
include_once(premium-settings.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.12ms] Passed 4 tests
Server-side resources used by Media2Commerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.95 ▼38.42 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.43 ▼47.03 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.37 ▼39.69 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.51 ▼95.35 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.22 ▼24.37 |
Media2Commerce Settings /wp-admin/options-general.php?page=m2c_display | 2.05 | 5.11 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
eightmcPlugin_m2c_default_types |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Media2Commerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲39 | 14.25 ▲0.08 | 1.87 ▼1.64 | 42.55 ▲2.26 |
Dashboard /wp-admin | 2,206 ▲32 | 5.58 ▲0.01 | 82.20 ▼14.90 | 45.64 ▲7.10 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.01 ▲0.02 | 35.57 ▲0.06 | 33.24 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.12 ▼0.04 | 688.99 ▲33.34 | 60.60 ▼3.70 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.17 ▼0.02 | 106.11 ▲3.80 | 47.68 ▲2.84 |
Media2Commerce Settings /wp-admin/options-general.php?page=m2c_display | 987 | 2.06 | 37.46 | 39.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/media2commerce/php/m2c-settings.php+28
include_once(premium-settings.php): failed to open stream: No such file or directory
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- eightmcPlugin_m2c_default_types
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=m2c_display
- > Warning in wp-content/plugins/media2commerce/php/m2c-settings.php+28
include_once(premium-settings.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=m2c_display
- > Warning in wp-content/plugins/media2commerce/php/m2c-settings.php+28
include_once(): Failed opening 'premium-settings.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/options-general.php?page=m2c_display
- > Warning in wp-content/plugins/media2commerce/php/m2c-settings.php+361
A non-numeric value encountered
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/media2commerce/index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/media2commerce/php/m2c-settings.php:66
- > 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 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
media2commerce/media2commerce.php Passed 13 tests
"Media2Commerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Automatically creates WooCommerce products from media images
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
There were no executable files found in this plugin837 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 291 | 303 | 724 |
CSS | 1 | 24 | 6 | 84 |
JavaScript | 1 | 7 | 9 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin