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
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/sender.class.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; syp_sender has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.69ms] Passed 4 tests
Server-side resources used by Priseo - Price comparison for WPShop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.42 ▲2.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.88 ▲1.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.22 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.46 ▼8.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.54 ▼0.37 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Priseo - Price comparison for WPShop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.02 | 2.00 ▲0.35 | 45.45 ▲4.86 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▲0.05 | 85.95 ▼1.82 | 39.60 ▼2.47 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.01 ▲0.03 | 34.94 ▼0.32 | 35.56 ▲4.64 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.13 ▼0.10 | 603.09 ▼98.71 | 51.90 ▼4.48 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.11 ▼0.10 | 98.52 ▲1.44 | 40.93 ▼4.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/core.class.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/syp-client.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/config.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/templates/template_elements.tpl.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/display.class.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/sender.class.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/include.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/ajax.class.php
- > /wp-content/plugins/priseo-price-comparison-for-wpshop/utils/librairies/listener.class.php
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: comparison, wpshop, competitors, product, price
priseo-price-comparison-for-wpshop/syp-client.php 92% from 13 tests
The main file in "Priseo - Price comparison for WPShop" v. 1.0.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("priseo-price-comparison-for-wpshop.php" instead of "syp-client.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
Everything looks great! No dangerous files found in this plugin2,022 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 240 | 320 | 1,397 |
JavaScript | 2 | 71 | 45 | 448 |
PO File | 1 | 53 | 58 | 135 |
CSS | 1 | 0 | 2 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 9 | 21.95% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 12 | |
▷ Named functions | 12 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/icon_premium.png | 11.00KB | 4.74KB | ▼ 56.89% |
templates/barcode.png | 0.54KB | 0.59KB | 0.00% |
templates/icon_sync.png | 8.75KB | 3.29KB | ▼ 62.44% |
templates/pattern.png | 0.72KB | 0.47KB | ▼ 34.24% |