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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.70ms] Passed 4 tests
An overview of server-side resources used by Handprint
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.78 ▼4.99 |
Dashboard /wp-admin | 3.35 ▼0.00 | 48.55 ▼15.84 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.89 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.51 ▼11.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.44 ▲1.60 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Handprint
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.34 ▼0.38 | 1.63 ▼0.38 | 41.07 ▼4.00 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.07 | 84.72 ▼16.54 | 39.24 ▼2.19 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.07 | 33.24 ▼0.37 | 34.73 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.48 ▼4.55 | 600.38 ▼81.15 | 59.05 ▲2.83 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.01 | 93.08 ▼1.98 | 43.40 ▲0.09 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/handprint/makepot.php' (include_path='.:/usr/share/php') in wp-content/plugins/handprint/add.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/handprint/templates/admin/cart/iframe.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/handprint/woocommerce-handprint.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/handprint/includes/admin/class-wc-admin-saas-integration.php:10
- > PHP Warning
require_once(wp-content/plugins/handprint/makepot.php): failed to open stream: No such file or directory in wp-content/plugins/handprint/add.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/handprint/templates/front/cart/iframe.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
handprint/woocommerce-handprint.php 85% from 13 tests
"Handprint" version 1.3.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("handprint.php" instead of "woocommerce-handprint.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,064 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 44 | 5 | 558 |
PHP | 7 | 122 | 160 | 459 |
PO File | 1 | 17 | 19 | 44 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.62MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/front/images/shadow.png | 317.44KB | 175.16KB | ▼ 44.82% |
assets/admin/images/shadow.png | 317.44KB | 175.16KB | ▼ 44.82% |