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 gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by MyFatoorah - WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.90 ▼0.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.37 ▼0.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.92 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.58 ▲14.28 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.53 ▼5.32 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MyFatoorah - WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.72 ▲0.07 | 38.86 ▼10.53 |
Dashboard /wp-admin | 2,206 ▲17 | 4.86 ▼0.09 | 126.37 ▼2.17 | 61.50 ▲15.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 38.89 ▲4.01 | 36.07 ▼4.91 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 22.94 ▲1.90 | 662.24 ▼73.07 | 58.40 ▼4.83 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.13 ▼0.09 | 123.95 ▼0.02 | 53.57 ▲4.15 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/myfatoorah-woocommerce/templates/loader.php:47
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/sectionGoogle.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/paymentFieldsEmbedded.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/myfatoorah-woocommerce/includes/admin/shipping.php:6
- > PHP Notice
Undefined variable: paymentId in wp-content/plugins/myfatoorah-woocommerce/templates/loader.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/myfatoorah-woocommerce/includes/admin/payment.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/paymentFieldsV2.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/sectionApple.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/sectionForm.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/myfatoorah-woocommerce/templates/error.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #3 in myfatoorah-woocommerce/assets to your readme.txt
myfatoorah-woocommerce/myfatoorah-woocommerce.php 92% from 13 tests
"MyFatoorah - WooCommerce" version 2.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.0")
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
No dangerous file extensions were detected2,653 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 478 | 514 | 2,069 |
PO File | 1 | 121 | 125 | 256 |
CSS | 2 | 26 | 31 | 143 |
JavaScript | 2 | 17 | 5 | 103 |
JSON | 1 | 0 | 0 | 82 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 18 | 14.75% |
▷ Public methods | 100 | 81.97% |
▷ Protected methods | 12 | 9.84% |
▷ Private methods | 10 | 8.20% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/direct.png | 8.03KB | 3.42KB | ▼ 57.45% |
assets/images/cards.png | 8.03KB | 3.42KB | ▼ 57.45% |
assets/images/embedded.png | 0.93KB | 0.29KB | ▼ 69.21% |
assets/images/v2.png | 0.93KB | 0.29KB | ▼ 69.21% |