Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.58ms] Passed 4 tests
An overview of server-side resources used by Foolosi Subscription for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.71 ▼6.83 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.45 ▼15.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.44 ▲5.00 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.24 ▼5.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.62 ▼2.23 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 146 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
foloosi_recently_activated |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Foolosi Subscription for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 14.81 ▲0.06 | 1.95 ▲0.15 | 42.56 ▼0.15 |
Dashboard /wp-admin | 2,220 ▲32 | 4.91 ▼0.18 | 101.76 ▼17.92 | 42.11 ▼6.05 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.04 ▲0.04 | 40.91 ▲4.24 | 36.40 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.38 ▲0.25 | 655.13 ▼40.58 | 55.99 ▲0.58 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.23 ▲0.01 | 99.90 ▼4.55 | 43.96 ▼0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- foloosi_recently_activated
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(wp-content/plugins/foloosi-subscription/plugin-fw/lib/../includes/class-foloosi-debug.php): failed to open stream: No such file or directory in wp-content/plugins/foloosi-subscription/plugin-fw/lib/foloosi-debug.php on line 11
- > PHP Warning
require_once(wp-content/plugins/foloosi-subscription/plugin-fw/lib/../includes/class-foloosi-plugin-common.php): failed to open stream: No such file or directory in wp-content/plugins/foloosi-subscription/plugin-fw/lib/foloosi-plugin-common.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/foloosi-subscription/plugin-fw/lib/../includes/class-foloosi-debug.php' (include_path='.:/usr/share/php') in wp-content/plugins/foloosi-subscription/plugin-fw/lib/foloosi-debug.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/foloosi-subscription/plugin-options/privacy-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/foloosi-subscription/templates/admin/subscriptions-tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/foloosi-subscription/plugin-options/subscriptions-options.php:16
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/foloosi-subscription/plugin-fw/lib/../includes/class-foloosi-plugin-common.php' (include_path='.:/usr/share/php') in wp-content/plugins/foloosi-subscription/plugin-fw/lib/foloosi-plugin-common.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/foloosi-subscription/plugin-options/general-options.php:8
- > PHP Warning
Use of undefined constant FOLOOSI_FWSBS_INIT - assumed 'FOLOOSI_FWSBS_INIT' (this will throw an Error in a future version of PHP) in wp-content/plugins/foloosi-subscription/plugin-options/subscriptions-options.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/foloosi-subscription/includes/admin/foloosi-subscription-details.php:32
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: subscriptions, subscription management, subscription billing, uae, card...
foloosi-subscription/foloosi-subscription-for-woocommerce.php 77% from 13 tests
The principal PHP file in "Foolosi Subscription for WooCommerce" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- 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
- Description: Please keep the plugin description shorter than 140 characters (currently 248 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("foloosi-subscription.php" instead of "foloosi-subscription-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,297 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 1,865 | 3,070 | 7,808 |
CSS | 5 | 784 | 129 | 3,927 |
JavaScript | 19 | 263 | 194 | 1,476 |
SVG | 2 | 0 | 1 | 54 |
XML | 1 | 10 | 8 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 224.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 23 | 10.90% |
▷ Public methods | 199 | 94.31% |
▷ Protected methods | 7 | 3.32% |
▷ Private methods | 5 | 2.37% |
Functions | 93 | |
▷ Named functions | 91 | 97.85% |
▷ Anonymous functions | 2 | 2.15% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upgrade.png | 1.65KB | 1.17KB | ▼ 28.95% |
plugin-fw/assets/images/spinner.png | 0.15KB | 0.14KB | ▼ 5.88% |
plugin-fw/assets/images/x.png | 0.70KB | 0.71KB | 0.00% |