Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
Server metrics [RAM: ▼1.56MB] [CPU: ▼53.33ms] Passed 4 tests
This is a short check of server-side resources used by Appeto
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.03 | 7.91 ▼33.75 |
Dashboard /wp-admin | 2.46 ▼0.89 | 10.36 ▼53.06 |
Posts /wp-admin/edit.php | 2.46 ▼0.90 | 10.07 ▼38.45 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.43 | 10.40 ▼88.07 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 10.96 ▼22.85 |
تنظیمات /wp-admin/admin.php?page=appeto-settings | 2.46 | 9.68 |
JSON API /wp-admin/options-general.php?page=json-api | 2.46 | 10.32 |
ووکامرس /wp-admin/admin.php?page=appeto-woo | 2.46 | 11.28 |
حساب کاربری وردپرس /wp-admin/admin.php?page=appeto-auth-settings | 2.46 | 12.66 |
دسترسی ها /wp-admin/admin.php?page=appeto-wp-cors | 2.46 | 10.14 |
CORS /wp-admin/options-general.php?page=wp-cors | 2.46 | 11.25 |
ارسال نوتیفیکیشن /wp-admin/admin.php?page=appeto-push | 2.46 | 9.97 |
ووکامرس شبکه ای /wp-admin/admin.php?page=appeto-network-woo | 2.46 | 10.08 |
وردپرس /wp-admin/admin.php?page=appeto-json-api | 2.46 | 10.65 |
Server storage [IO: ▲5.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 136 new files
Database: no new tables, 14 new options
New WordPress options |
---|
appeto_secure_key_woo |
widget_recent-comments |
theysaidso_admin_options |
appeto_woo_signup_form_city |
appeto_woo_signup_form_mobile |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
appeto_woo_signup_form_address2 |
appeto_woo_signup_form_address |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Appeto
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,021 ▲275 | 15.42 ▲1.03 | 1.59 ▼0.26 | 36.35 ▼7.26 |
Dashboard /wp-admin | 2,427 ▲239 | 7.23 ▲2.35 | 134.41 ▲21.53 | 89.40 ▲43.47 |
Posts /wp-admin/edit.php | 2,336 ▲250 | 4.02 ▲2.02 | 52.66 ▲12.72 | 76.90 ▲42.36 |
Add New Post /wp-admin/post-new.php | 6,529 ▲4,999 | 28.26 ▲10.09 | 902.77 ▲289.16 | 54.70 ▼1.00 |
Media Library /wp-admin/upload.php | 1,463 ▲72 | 4.79 ▲0.56 | 87.10 ▼12.56 | 92.65 ▲48.41 |
تنظیمات /wp-admin/admin.php?page=appeto-settings | 1,097 | 3.68 | 45.29 | 101.66 |
JSON API /wp-admin/options-general.php?page=json-api | 1,419 | 3.66 | 44.10 | 65.65 |
ووکامرس /wp-admin/admin.php?page=appeto-woo | 759 | 2.12 | 10.66 | 34.58 |
حساب کاربری وردپرس /wp-admin/admin.php?page=appeto-auth-settings | 1,031 | 3.65 | 41.78 | 77.97 |
دسترسی ها /wp-admin/admin.php?page=appeto-wp-cors | 1,764 | 4.70 | 51.85 | 45.36 |
CORS /wp-admin/options-general.php?page=wp-cors | 1,054 | 3.64 | 42.09 | 81.47 |
ارسال نوتیفیکیشن /wp-admin/admin.php?page=appeto-push | 1,124 | 3.64 | 43.48 | 99.24 |
ووکامرس شبکه ای /wp-admin/admin.php?page=appeto-network-woo | 1,032 | 3.65 | 40.80 | 85.24 |
وردپرس /wp-admin/admin.php?page=appeto-json-api | 2,123 | 4.75 | 48.92 | 89.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/comment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Comment has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/category.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Category has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/tag.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Tag has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/author.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Author has a deprecated constructor
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appeto-json-api
- > Deprecated in wp-content/plugins/appeto-woocommerce/json-api/models/attachment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Attachment has a deprecated constructor
SRP 0% 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
Almost there! Just fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/appeto-woocommerce/api/views/v2/categories.php
- > /wp-content/plugins/appeto-woocommerce/api/views/categories.php
- > /wp-content/plugins/appeto-woocommerce/api/views/product.php
- > /wp-content/plugins/appeto-woocommerce/views/wooNetwork.php
- > /wp-content/plugins/appeto-woocommerce/views/auth.php
- 117× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/category.php on line 2
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/v2/product.php on line 17
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/search.php on line 1
- > PHP Notice
Trying to get property 'content_classes' of non-object in wp-content/plugins/appeto-woocommerce/api/views/product.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Client_Exception' not found in wp-content/plugins/appeto-woocommerce/api/lib/woocommerce-api/exceptions/class-wc-api-client-http-exception.php:9
- > PHP Notice
Trying to get property 'content_classes' of non-object in wp-content/plugins/appeto-woocommerce/api/views/search.php on line 3
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/v2/network-search.php on line 7
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/v2/product.php on line 17
- > PHP Notice
Undefined variable: extra in wp-content/plugins/appeto-woocommerce/api/views/product.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Client_Resource' not found in wp-content/plugins/appeto-woocommerce/api/lib/woocommerce-api/resources/class-wc-api-client-resource-customers.php:7
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=appeto-woo
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=settings_tab_appeto - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== appeto-woocommerce ===
)
appeto-woocommerce/index.php 85% from 13 tests
The primary PHP file in "Appeto" version 4.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("appeto-woocommerce.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected30,442 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 189 | 149 | 12,915 |
PHP | 89 | 1,497 | 1,979 | 9,358 |
SVG | 2 | 1 | 1 | 2,773 |
JSON | 4 | 0 | 0 | 2,654 |
CSS | 4 | 787 | 29 | 1,889 |
HTML | 2 | 35 | 11 | 365 |
LESS | 3 | 39 | 68 | 308 |
Markdown | 3 | 45 | 0 | 154 |
Ant | 1 | 5 | 0 | 20 |
YAML | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 1 | 2.22% |
▷ Concrete classes | 44 | 97.78% |
▷ Final classes | 0 | 0.00% |
Methods | 314 | |
▷ Static methods | 34 | 10.83% |
▷ Public methods | 288 | 91.72% |
▷ Protected methods | 16 | 5.10% |
▷ Private methods | 10 | 3.18% |
Functions | 42 | |
▷ Named functions | 35 | 83.33% |
▷ Anonymous functions | 7 | 16.67% |
Constants | 22 | |
▷ Global constants | 20 | 90.91% |
▷ Class constants | 2 | 9.09% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/appeto.png | 1.60KB | 0.94KB | ▼ 41.26% |
assets/img/no_image.png | 15.67KB | 6.96KB | ▼ 55.59% |
json-api/screenshot-1.png | 22.90KB | 8.29KB | ▼ 63.82% |
assets/fontawesome-iconpicker/extension/icon-128.png | 12.55KB | 5.02KB | ▼ 60.02% |
assets/fontawesome-iconpicker/extension/icon.png | 1.48KB | 0.74KB | ▼ 49.80% |