Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/pg-simple-affiliate-shop/inc/pg-options.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; PG_OptionsSupport has a deprecated constructor
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.07ms] Passed 4 tests
A check of server-side resources used by PG Simple Affiliate Shop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.05 ▲3.89 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.05 ▼2.72 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.07 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 82.64 ▼1.17 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.58 ▲3.88 |
Product Reorder /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas-reorder | 3.27 | 31.27 |
All Products /wp-admin/edit.php?post_type=pgeek_sas | 3.36 | 36.12 |
Add New Product /wp-admin/post-new.php?post_type=pgeek_sas | 3.40 | 51.72 |
Product Type /wp-admin/edit-tags.php?taxonomy=pg_sas_type&post_type=pgeek_sas | 3.32 | 38.19 |
Settings /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas | 3.26 | 33.05 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
pg-sas-general-opt |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
pg_sas_type_children |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PG Simple Affiliate Shop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲49 | 13.36 ▲0.16 | 1.63 ▼0.38 | 43.70 ▲1.40 |
Dashboard /wp-admin | 2,227 ▲21 | 4.90 ▼0.97 | 115.22 ▲1.80 | 65.68 ▲20.72 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.39 ▲0.34 | 44.72 ▲10.94 | 32.28 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,696 ▲182 | 22.39 ▲5.00 | 698.00 ▲42.52 | 56.45 ▲2.24 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.33 ▲0.11 | 104.79 ▼9.96 | 46.06 ▼2.83 |
Product Reorder /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas-reorder | 855 | 2.14 | 37.93 | 28.46 |
All Products /wp-admin/edit.php?post_type=pgeek_sas | 1,198 | 2.29 | 34.58 | 34.01 |
Add New Product /wp-admin/post-new.php?post_type=pgeek_sas | 1,859 | 3.71 | 74.28 | 87.34 |
Product Type /wp-admin/edit-tags.php?taxonomy=pg_sas_type&post_type=pgeek_sas | 1,524 | 2.17 | 30.95 | 37.49 |
Settings /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas | 963 | 2.12 | 29.45 | 32.39 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- pg_sas_type_children
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pgeek_sas&page=pg-sas
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pg-simple-affiliate-shop/shop.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/pg-simple-affiliate-shop/js/pg-sas-popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pg-simple-affiliate-shop/inc/single-pgeek_sas.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The 'Edit/New product' page), #2 (The 'All products' page), #3 (The shortcut in a standard page to create the shop), #4 (The shortcut in a text widget to create the banner), #5 (The resulting shop), #6 (The new shortcode helper/button in the editor)
pg-simple-affiliate-shop/shop.php 85% from 13 tests
The entry point to "PG Simple Affiliate Shop" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pg-simple-affiliate-shop.php" instead of "shop.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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,537 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 207 | 315 | 1,031 |
CSS | 2 | 40 | 25 | 327 |
JavaScript | 5 | 47 | 39 | 179 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 62.50 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.66MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 71.59KB | 33.08KB | ▼ 53.79% |
screenshot-6.png | 21.40KB | 9.87KB | ▼ 53.89% |
images/cash-register-icon24.png | 1.17KB | 1.24KB | 0.00% |
screenshot-3.png | 75.42KB | 33.42KB | ▼ 55.69% |
images/clickhere.png | 5.21KB | 4.82KB | ▼ 7.45% |