Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.12ms] Passed 4 tests
A check of server-side resources used by Smaily for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.64 ▲3.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.38 ▼5.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.29 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.19 ▼3.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.94 ▼1.24 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Smaily for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.18 ▼1.40 | 2.26 ▲0.40 | 42.16 ▲2.61 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.03 | 107.69 ▲5.82 | 41.81 ▲0.73 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 39.83 ▲2.68 | 34.83 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.57 ▲0.24 | 664.93 ▼25.00 | 53.66 ▼0.05 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.06 | 94.36 ▼1.47 | 41.73 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smaily-for-woocommerce/smaily-for-woocommerce.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smaily-for-woocommerce/inc/Widget/SmailyWidget.php:13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/smaily-for-woocommerce/migrations/upgrade-1-0-0.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/smaily-for-woocommerce/templates/smaily-rss-feed.php:10
- > PHP Fatal error
Uncaught Error: Class 'Smaily_Inc\\Base\\DataHandler' not found in wp-content/plugins/smaily-for-woocommerce/templates/smaily-woocommerce-admin.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/smaily-for-woocommerce/migrations/upgrade-1-0-0.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/smaily-for-woocommerce/migrations/upgrade-1-0-0.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: email, newsletter, smaily, woocommerce
smaily-for-woocommerce/smaily-for-woocommerce.php 69% from 13 tests
The main PHP script in "Smaily for WooCommerce" version 1.11.2 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Description: The description should be shorter than 140 characters (currently 226 characters long)
- 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
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
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 plugin4,760 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 510 | 1,208 | 3,224 |
PO File | 2 | 288 | 338 | 639 |
SVG | 5 | 0 | 0 | 456 |
CSS | 3 | 48 | 18 | 322 |
JavaScript | 3 | 22 | 25 | 114 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 1 | 5.56% |
Methods | 119 | |
▷ Static methods | 33 | 27.73% |
▷ Public methods | 105 | 88.24% |
▷ Protected methods | 6 | 5.04% |
▷ Private methods | 8 | 6.72% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin