Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.96ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Products Ticker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.89 ▲1.33 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.60 ▼14.94 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 45.09 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.78 ▼7.54 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.11 ▼4.74 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_wcpt_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Products Ticker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 14.17 ▼0.21 | 6.01 ▲4.35 | 42.45 ▼1.98 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.05 | 107.67 ▲5.49 | 42.90 ▲3.35 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.01 | 39.06 ▼1.10 | 38.09 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 23.09 ▼0.43 | 600.31 ▼77.31 | 57.12 ▼1.27 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.01 | 95.63 ▼11.52 | 41.11 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wc-products-ticker/templates/template-layout1.php:4
- > PHP Notice
Undefined variable: wcpt_query in wp-content/plugins/wc-products-ticker/templates/template-default.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wc-products-ticker/templates/template-default.php:4
- > PHP Notice
Undefined variable: wcpt_query in wp-content/plugins/wc-products-ticker/templates/template-layout1.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 17 tag instead of maximum 10
wc-products-ticker/wcpt.php 69% from 13 tests
The principal PHP file in "WooCommerce Products Ticker" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/languagesCopyright 2015 Amity Themes (email : info@amitythemes.com)")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.6" instead of "4.1")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-products-ticker.php" instead of "wcpt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected980 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 157 | 170 | 600 |
JavaScript | 3 | 68 | 49 | 225 |
CSS | 2 | 37 | 19 | 155 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 10.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/down.png | 14.54KB | 0.48KB | ▼ 96.69% |
admin/images/up.png | 14.52KB | 0.49KB | ▼ 96.66% |
assets/images/no-thumb.png | 13.57KB | 5.52KB | ▼ 59.35% |