Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▼131.60ms] Passed 4 tests
An overview of server-side resources used by Persian Terms And Policy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.16 ▲0.44 | 56.50 ▲33.32 |
Dashboard /wp-admin | 3.47 ▲0.42 | 55.56 ▲10.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.41 | 54.17 ▲9.12 |
Add New Post /wp-admin/post-new.php | 5.77 ▲0.34 | 104.58 ▼557.97 |
Media Library /wp-admin/upload.php | 3.35 ▲0.35 | 44.61 ▲11.72 |
تنظیمات /wp-admin/edit.php?post_type=one-termspolicy_page&page=oneTermsPolicy_option | 3.34 | 40.74 |
همه قوانین /wp-admin/edit.php?post_type=one-termspolicy_page | 3.45 | 46.71 |
شرایط و قوانین سایت فروشگاهی /wp-admin/admin.php?page=oneTermsPolicy_StoreShop | 3.34 | 45.92 |
حریم خصوصی /wp-admin/admin.php?page=oneTermsPolicy_Privacy | 3.34 | 43.86 |
افزودن قوانین /wp-admin/post-new.php?post_type=one-termspolicy_page | 3.30 | 39.41 |
تنظمیات اعتبارسنجی /wp-admin/admin.php?page=oneTermsPolicy_Validate_option | 3.35 | 38.87 |
شرایط و قوانین سایت شخصی /wp-admin/admin.php?page=oneTermsPolicy_Personal | 3.34 | 40.33 |
درباره افزونه /wp-admin/edit.php?post_type=one-termspolicy_page&page=oneTermsPolicy_info | 3.33 | 39.98 |
شرایط و قوانین سایت شرکتی /wp-admin/admin.php?page=oneTermsPolicy_Company | 3.34 | 39.34 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 4 new options
New WordPress options |
---|
_one-TermsPolicy_option |
_one-TermsPolicy_Validate |
recovery_mode_email_last_sent |
_one-TermsPolicy_Activate |
Browser metrics Passed 4 tests
Persian Terms And Policy: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,728 ▲132 | 15.86 ▼0.18 | 8.30 ▼1.69 | 48.88 ▼0.59 |
Dashboard /wp-admin | 3,015 ▲81 | 5.93 ▼0.11 | 166.72 ▲10.95 | 132.04 ▲14.71 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.70 ▲0.01 | 68.51 ▼11.46 | 105.01 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,712 ▲29 | 18.76 ▲0.21 | 395.39 ▲10.73 | 114.69 ▲2.84 |
Media Library /wp-admin/upload.php | 1,855 ▲48 | 5.04 ▲0.05 | 185.97 ▲5.66 | 142.91 ▲10.24 |
تنظیمات /wp-admin/edit.php?post_type=one-termspolicy_page&page=oneTermsPolicy_option | 1,262 | 2.40 | 64.45 | 96.06 |
همه قوانین /wp-admin/edit.php?post_type=one-termspolicy_page | 1,475 | 2.89 | 66.36 | 103.16 |
شرایط و قوانین سایت فروشگاهی /wp-admin/admin.php?page=oneTermsPolicy_StoreShop | 1,284 | 2.09 | 55.91 | 113.38 |
حریم خصوصی /wp-admin/admin.php?page=oneTermsPolicy_Privacy | 913 | 1.85 | 36.24 | 68.19 |
افزودن قوانین /wp-admin/post-new.php?post_type=one-termspolicy_page | 1,169 | 2.51 | 62.60 | 97.86 |
تنظمیات اعتبارسنجی /wp-admin/admin.php?page=oneTermsPolicy_Validate_option | 1,214 | 2.05 | 54.17 | 118.81 |
شرایط و قوانین سایت شخصی /wp-admin/admin.php?page=oneTermsPolicy_Personal | 1,205 | 2.06 | 53.31 | 102.29 |
درباره افزونه /wp-admin/edit.php?post_type=one-termspolicy_page&page=oneTermsPolicy_info | 1,149 | 2.34 | 61.57 | 89.47 |
شرایط و قوانین سایت شرکتی /wp-admin/admin.php?page=oneTermsPolicy_Company | 1,197 | 2.09 | 58.26 | 104.28 |
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
- Zombie WordPress options were found after uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=oneTermsPolicy_Privacy
- > Error in wp-content/plugins/one-termspolicy-page/includes/pages/Page-Question.php+22
Uncaught Error: Call to undefined method oneTermsPolicy\csQuestion::PrivacyQuestion() in wp-content/plugins/one-termspolicy-page/includes/pages/Page-Question.php:22
Stack trace:
#0 wp-content/plugins/one-termspolicy-page/includes/csMenu.php(96): include()
#1 wp-includes/class-wp-hook.php(303): oneTermsPolicy\csMenu->privacy_Question_Content()
#2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(470): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/post-new.php?post_type=one-termspolicy_page
- > Notice in wp-includes/admin-bar.php+717
Trying to get property 'post_type' of non-object
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Tags: No tags were detected
one-termspolicy-page/oneTermsPolicy.php 85% from 13 tests
The main PHP file in "Persian Terms And Policy" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("one-termspolicy-page.php" instead of "oneTermsPolicy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,867 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 222 | 260 | 3,000 |
CSS | 2 | 389 | 10 | 1,657 |
JavaScript | 3 | 2 | 14 | 173 |
PO File | 1 | 4 | 4 | 25 |
JSON | 2 | 1 | 0 | 12 |
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.54 |
Average class complexity | 12.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 7 | 9.21% |
▷ Public methods | 75 | 98.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.32% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 15 | |
▷ Global constants | 15 | 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 files were detected