Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.95ms] Passed 4 tests
Analyzing server-side resources used by Shop Page WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.78 ▼3.40 |
Dashboard /wp-admin | 3.52 ▲0.22 | 49.61 ▲1.68 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.59 ▲0.77 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 85.71 ▼2.86 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 43.02 ▲11.96 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=shop-page-wp | 3.44 | 38.91 |
Instructions /wp-admin/edit.php?post_type=shop-page-wp&page=shop-page-wp-instructions | 3.41 | 35.56 |
All Products /wp-admin/edit.php?post_type=shop-page-wp | 3.50 | 40.21 |
Add New Product /wp-admin/post-new.php?post_type=shop-page-wp | 3.53 | 51.16 |
Settings /wp-admin/edit.php?post_type=shop-page-wp&page=shop-page-wp-settings | 3.39 | 43.31 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 10 new options
New WordPress options |
---|
shop-page-wp-legacy-format |
can_compress_scripts |
widget_recent-posts |
widget_shop_page_wp |
shop-page-wp-link-target |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
category_children |
Browser metrics Passed 4 tests
Checking browser requirements for Shop Page WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲93 | 14.72 ▲0.37 | 1.71 ▲0.00 | 36.29 ▼11.70 |
Dashboard /wp-admin | 2,241 ▲60 | 5.59 ▼0.10 | 90.68 ▼20.91 | 39.57 ▼7.34 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.00 ▲0.05 | 39.79 ▲0.19 | 35.27 ▼3.39 |
Add New Post /wp-admin/post-new.php | 6,400 ▲4,871 | 27.60 ▲4.42 | 834.50 ▲147.02 | 37.20 ▼18.53 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.15 ▼0.03 | 96.77 ▼11.86 | 42.12 ▼2.63 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=shop-page-wp | 1,495 | 2.26 | 31.58 | 33.64 |
Instructions /wp-admin/edit.php?post_type=shop-page-wp&page=shop-page-wp-instructions | 911 | 1.97 | 22.39 | 35.10 |
All Products /wp-admin/edit.php?post_type=shop-page-wp | 1,162 | 1.90 | 31.63 | 31.20 |
Add New Product /wp-admin/post-new.php?post_type=shop-page-wp | 1,826 | 3.61 | 76.19 | 31.45 |
Settings /wp-admin/edit.php?post_type=shop-page-wp&page=shop-page-wp-settings | 1,020 | 2.05 | 23.93 | 34.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- category_children
- shop-page-wp-link-target
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_shop_page_wp
- shop-page-wp-legacy-format
- db_upgraded
Smoke tests 50% 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)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=shop-page-wp&page=shop-page-wp-settings
- > Notice in wp-content/plugins/shop-page-wp/includes/class-shop-page-wp-admin-settings.php+270
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shop-page-wp/includes/class-shop-page-wp-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/shop-page-wp/includes/class-shop-page-wp-widget.php:6
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: amazon, amazon affiliates, affiliate, amazon associates, shop...
shop-page-wp/shop-page-wp.php Passed 13 tests
This is the main PHP file of "Shop Page WP" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Create a shop for affiliate products.
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
No dangerous file extensions were detected1,835 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 171 | 199 | 1,137 |
JavaScript | 5 | 45 | 76 | 422 |
Sass | 4 | 4 | 57 | 186 |
CSS | 4 | 6 | 26 | 61 |
JSON | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 42 | 82.35% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/product-image-placeholder.png | 4.71KB | 1.73KB | ▼ 63.21% |