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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.93ms] Passed 4 tests
Analyzing server-side resources used by XML Data Feed for Shopbot CSE
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.87 ▼5.96 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.94 ▼2.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.08 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.22 ▼3.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.64 ▼3.81 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for XML Data Feed for Shopbot CSE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▼0.12 | 1.91 ▲0.03 | 45.99 ▲5.79 |
Dashboard /wp-admin | 2,189 ▲18 | 5.55 ▼0.05 | 83.67 ▼3.55 | 37.56 ▼5.63 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.04 | 35.37 ▼1.87 | 29.63 ▼8.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▼0.27 | 686.97 ▲30.76 | 52.36 ▲1.95 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.09 | 104.98 ▲2.60 | 46.75 ▲4.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
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: Class 'Shopbot\\ProductFeed\\Abs\\WooField' not found in wp-content/plugins/muzaara-shopbot-cse-xml-data-feed/class/objects/Field.php:4
- > PHP Fatal error
Uncaught Error: Class 'Shopbot\\ProductFeed\\Abs\\Feed' not found in wp-content/plugins/muzaara-shopbot-cse-xml-data-feed/class/objects/GFeed.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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: price comparison, woocommerce, xml data feed, data feed, shopbot
muzaara-shopbot-cse-xml-data-feed/shopbot-woopf.php 85% from 13 tests
Analyzing the main PHP file in "XML Data Feed for Shopbot CSE" version 1.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("muzaara-shopbot-cse-xml-data-feed.php" instead of "shopbot-woopf.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin10,180 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 6,481 |
PHP | 21 | 454 | 89 | 2,009 |
JavaScript | 12 | 193 | 5 | 1,502 |
CSS | 1 | 28 | 2 | 155 |
SVG | 1 | 1 | 0 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 3 | 27.27% |
▷ Concrete classes | 8 | 72.73% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 2 | 1.42% |
▷ Public methods | 133 | 94.33% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 7 | 4.96% |
Functions | 36 | |
▷ Named functions | 15 | 41.67% |
▷ Anonymous functions | 21 | 58.33% |
Constants | 36 | |
▷ Global constants | 12 | 33.33% |
▷ Class constants | 24 | 66.67% |
▷ Public constants | 24 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.70MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/image/screenshot-4.png | 74.17KB | 32.18KB | ▼ 56.61% |
asset/image/screenshot-3.png | 69.44KB | 29.39KB | ▼ 57.67% |
asset/screenshot-4.png | 74.17KB | 32.18KB | ▼ 56.61% |
asset/screenshot-1.png | 61.89KB | 27.78KB | ▼ 55.11% |
asset/banner-772x250.png | 91.09KB | 69.12KB | ▼ 24.11% |