Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.31ms] Passed 4 tests
Analyzing server-side resources used by Easy Way to Sell Digital Goods with Payhip
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.42 ▲3.25 |
Dashboard /wp-admin | 3.53 ▲0.22 | 56.74 ▲5.56 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.60 ▼0.69 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 88.91 ▼13.09 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 40.54 ▲5.31 |
All Items /wp-admin/edit.php?post_type=payhip-sell-digital | 3.49 | 41.78 |
Add New /wp-admin/post-new.php?post_type=payhip-sell-digital | 6.18 | 82.98 |
Server storage [IO: ▲0.38MB] [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: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wp_payhip_sell_digital_review_notice |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Way to Sell Digital Goods with Payhip
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲258 | 14.33 ▼0.08 | 24.25 ▲22.59 | 45.69 ▲6.49 |
Dashboard /wp-admin | 2,222 ▲42 | 5.63 ▼0.01 | 81.26 ▼4.41 | 38.21 ▼4.42 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.98 ▲0.01 | 36.87 ▲2.77 | 37.62 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.08 ▼4.99 | 623.03 ▼49.37 | 62.88 ▲6.35 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.16 ▲0.01 | 102.83 ▲1.39 | 44.85 ▲0.11 |
All Items /wp-admin/edit.php?post_type=payhip-sell-digital | 1,136 | 1.95 | 34.32 | 30.87 |
Add New /wp-admin/post-new.php?post_type=payhip-sell-digital | 6,347 | 20.52 | 861.25 | 37.41 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wp_payhip_sell_digital_review_notice
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/public/template/shortcode/lists.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PAYHIP_SELL_DIGITAL_PATH - assumed 'WP_PAYHIP_SELL_DIGITAL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/admin/load.php on line 3
- > PHP Warning
require_once(WP_PAYHIP_SELL_DIGITAL_PATHadmin/inc/CustomPost.class.php): failed to open stream: No such file or directory in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/admin/load.php on line 3
- > PHP Notice
Undefined variable: posts in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/public/template/shortcode/lists.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/public/template/shortcode/lists.php on line 2
- > PHP Notice
Undefined variable: cols in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/public/template/shortcode/lists.php on line 1
- > PHP Fatal error
require_once(): Failed opening required 'WP_PAYHIP_SELL_DIGITAL_PATHadmin/inc/CustomPost.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/admin/load.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/admin/views/meta-box.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/easy-way-to-sell-digital-goods-with-payhip/public/template/product.php:27
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
easy-way-to-sell-digital-goods-with-payhip/index.php 85% from 13 tests
The entry point to "Easy Way to Sell Digital Goods with Payhip" version 1.2.10 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 351 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-way-to-sell-digital-goods-with-payhip.php" instead of "index.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
No dangerous file extensions were detected2,032 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 263 | 83 | 1,409 |
CSS | 2 | 40 | 8 | 508 |
JavaScript | 2 | 2 | 0 | 111 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/default.png | 156.19KB | 109.74KB | ▼ 29.74% |