Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.59ms] Passed 4 tests
An overview of server-side resources used by Import Products, Variations and Attributes - Free by WP Masters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 46.15 ▲1.44 |
Dashboard /wp-admin | 3.32 ▲0.01 | 55.67 ▼2.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 76.81 ▲20.64 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 104.28 ▲6.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.17 ▲0.33 |
Server storage [IO: ▲4.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Import Products, Variations and Attributes - Free by WP Masters
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲46 | 15.48 ▲0.68 | 1.89 ▲0.03 | 41.87 ▼5.57 |
Dashboard /wp-admin | 2,244 ▲38 | 7.28 ▲1.43 | 123.49 ▲16.44 | 41.09 ▼0.72 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 3.98 ▲1.93 | 51.49 ▲10.76 | 36.64 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6,544 ▲5,008 | 26.99 ▲3.93 | 1,096.79 ▲422.03 | 41.92 ▼8.18 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 6.69 ▲2.50 | 125.77 ▲26.54 | 48.48 ▲4.54 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/import-products-variations-and-attributes-free-by-wp-masters/wpm-import-products-variations-attributes.php on line 17
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/import-products-variations-and-attributes-free-by-wp-masters/wpm-import-products-variations-attributes.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/import-products-variations-and-attributes-free-by-wp-masters/templates/admin/settings.php:19
- > PHP Warning
require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/import-products-variations-and-attributes-free-by-wp-masters/wpm-import-products-variations-attributes.php on line 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: create attributes on import, import products and attributes, import variations, import products, variations with attributes...
import-products-variations-and-attributes-free-by-wp-masters/wpm-import-products-variations-attributes.php 85% from 13 tests
"Import Products, Variations and Attributes - Free by WP Masters" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("import-products-variations-and-attributes-free-by-wp-masters.php" instead of "wpm-import-products-variations-attributes.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin12,076 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 4 | 237 | 291 | 1,300 |
CSS | 3 | 149 | 5 | 906 |
JavaScript | 3 | 11 | 5 | 318 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 70.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 40 | 80.00% |
▷ Protected methods | 10 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/logo.png | 11.32KB | 4.55KB | ▼ 59.79% |