Benchmarks
Plugin footprint 83% 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.09MB] [CPU: ▼4.28ms] Passed 4 tests
An overview of server-side resources used by Chargely Free Subscriptions For Woocommernce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.59 ▲2.98 |
Dashboard /wp-admin | 3.40 ▲0.09 | 44.21 ▼1.82 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.39 ▲4.66 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.73 ▼17.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 31.70 ▼0.49 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chargely Free Subscriptions For Woocommernce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.55 ▼0.68 | 2.06 ▲0.29 | 44.02 ▲4.37 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.97 | 103.42 ▼3.42 | 39.10 ▼0.97 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.01 | 39.08 ▲3.88 | 33.62 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,514 ▼22 | 17.62 ▼5.31 | 678.01 ▲90.39 | 56.86 ▲5.32 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.01 | 94.39 ▼2.70 | 40.66 ▼2.97 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/frontend/add_to_cart.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/refund.php:104
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/subscriptions.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/setting.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/frontend/pay.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/frontend/checkout.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/login.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function get_price() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/frontend/add_to_cart.php:193
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/frontend/subscription_menu.php:26
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/edit_product.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/chargely-free-subscriptions-for-woocommerce/views/admin/transactions.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #3 (banner-772x250-rtl.jpg), #4 (banner-772x250.jpg), #5 (banner-1544X500-rtl.jpg), #6 (banner-1544X500.jpg), #7 (icon-128x128.jpg), #8 (icon-256X256.jpg)
chargely-free-subscriptions-for-woocommerce/chargely-woocommerce.php 85% from 13 tests
The principal PHP file in "Chargely Free Subscriptions For Woocommernce" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chargely-free-subscriptions-for-woocommerce.php" instead of "chargely-woocommerce.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 plugin8,821 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 943 | 77 | 6,177 |
JavaScript | 4 | 129 | 36 | 1,949 |
CSS | 3 | 129 | 24 | 688 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
17 PNG files occupy 0.62MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/admin/images/pci_compliance_logo.png | 2.90KB | 2.73KB | ▼ 5.85% |
views/admin/images/login_account.png | 0.50KB | 0.37KB | ▼ 26.81% |
views/admin/images/secure.png | 4.00KB | 3.50KB | ▼ 12.60% |
views/admin/images/dashboard_connect_left.png | 129.28KB | 32.33KB | ▼ 74.99% |
views/admin/images/phone.png | 42.68KB | 13.11KB | ▼ 69.28% |