Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.44ms] Passed 4 tests
Analyzing server-side resources used by Listing & Smart Shopping Campaign for Google
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.97 ▼5.73 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.97 ▼4.78 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 48.24 ▼6.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 90.21 ▼8.99 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 66.03 ▲30.49 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 115 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_google_shopping_product_upload_status |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Listing & Smart Shopping Campaign for Google: 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,801 ▼10 | 13.17 ▲0.01 | 1.78 ▼0.38 | 44.90 ▼1.74 |
Dashboard /wp-admin | 2,209 ▲3 | 5.83 ▲0.96 | 98.32 ▼4.65 | 36.36 ▼4.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▼0.00 | 39.71 ▲1.07 | 34.07 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 21.07 ▼2.07 | 694.70 ▼83.67 | 51.01 ▼4.70 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.03 | 128.45 ▲27.54 | 54.09 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_google_shopping_product_upload_status
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-faq.php
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-configuration.php:2
- > PHP Warning
require(CED_WGEI_DIRPATHadmin/lib/listing-and-smart-shopping-campaign-for-google-lib.php): failed to open stream: No such file or directory in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-googleads.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/translation-install.php): failed to open stream: No such file or directory in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/partials/listing-and-smart-shopping-campaign-for-google-googleConfiguration.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/partials/listing-and-smart-shopping-campaign-for-google-admin-display.php:15
- > PHP Warning
require(CED_WGEI_DIRPATHadmin/lib/listing-and-smart-shopping-campaign-for-google-lib.php): failed to open stream: No such file or directory in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-setting.php on line 2
- > PHP Warning
Use of undefined constant CED_WGEI_DIRPATH - assumed 'CED_WGEI_DIRPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-setting.php on line 2
- > PHP Fatal error
require(): Failed opening required 'CED_WGEI_DIRPATHadmin/lib/listing-and-smart-shopping-campaign-for-google-lib.php' (include_path='.:/usr/share/php') in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-googleads.php on line 3
- > PHP Warning
Use of undefined constant CED_WGEI_DIRPATH - assumed 'CED_WGEI_DIRPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/dashboard/listing-and-smart-shopping-campaign-for-google-dashboard-googleads.php on line 3
- > PHP Warning
require(CED_WGEI_DIRPATHadmin/lib/listing-and-smart-shopping-campaign-for-google-lib.php): failed to open stream: No such file or directory in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/partials/listing-and-smart-shopping-campaign-for-google-googleAdds.php on line 3
- > PHP Warning
Use of undefined constant CED_WGEI_DIRPATH - assumed 'CED_WGEI_DIRPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/listing-smart-shopping-campaign-for-google/admin/partials/listing-and-smart-shopping-campaign-for-google-googleAdds.php on line 3
- > 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 76% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #10 (Google Ads), #11 (Conversions), #12 (Reporting), #13 (Profile), #14 (Reconnect Account), #15 (Merchant Center), #16 (Activities), #17 (FAQ and Support)
listing-smart-shopping-campaign-for-google/listing-and-smart-shopping-campaign-for-google.php 62% from 13 tests
The primary PHP file in "Listing & Smart Shopping Campaign for Google" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "3.0")
- Main file name: Name the main plugin file the same as the plugin slug ("listing-smart-shopping-campaign-for-google.php" instead of "listing-and-smart-shopping-campaign-for-google.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
- Domain Path: The domain path folder does not exist ("/languages")
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 detected19,490 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 977 | 831 | 10,715 |
CSS | 1 | 403 | 233 | 6,392 |
JavaScript | 1 | 128 | 108 | 2,381 |
JSON | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 58.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 387.00 |
Average method complexity | 6.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 3 | 3.19% |
▷ Public methods | 88 | 93.62% |
▷ Protected methods | 1 | 1.06% |
▷ Private methods | 5 | 5.32% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 0.77MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/support.png | 0.73KB | 0.80KB | 0.00% |
admin/images/check-new.png | 2.14KB | 0.88KB | ▼ 59.09% |
admin/images/home.png | 6.64KB | 4.35KB | ▼ 34.52% |
admin/images/Creative.png | 366.04KB | 115.62KB | ▼ 68.41% |
admin/images/logo.png | 158.63KB | 55.59KB | ▼ 64.96% |