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: ▼5.29ms] Passed 4 tests
This is a short check of server-side resources used by Printcart Web to Print Product Designer for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.72 ▼10.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.36 ▼5.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.43 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.53 ▼4.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.10 ▲2.00 |
Server storage [IO: ▲0.21MB] [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: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
printcart_plugin_do_activation_redirect |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Printcart Web to Print Product Designer for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.40 | 1.63 ▼0.11 | 40.09 ▼5.12 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.04 | 96.25 ▼3.05 | 39.99 ▼2.43 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.01 | 39.28 ▲0.26 | 36.03 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,539 ▲3 | 25.29 ▲2.30 | 661.59 ▼146.65 | 73.68 ▲9.90 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.02 | 96.47 ▼4.39 | 43.56 ▲0.14 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- printcart_plugin_do_activation_redirect
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/printcart-integration/printcart-design.php:20
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
printcart-integration/printcart-design.php 85% from 13 tests
"Printcart Web to Print Product Designer for WooCommerce" version 2.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("printcart-integration.php" instead of "printcart-design.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "6.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,122 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 249 | 84 | 2,161 |
CSS | 2 | 13 | 1 | 533 |
JavaScript | 4 | 28 | 0 | 357 |
SVG | 2 | 0 | 1 | 66 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 40.14 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 33 | 32.67% |
▷ Public methods | 101 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin