Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.31ms] 75% from 4 tests
Analyzing server-side resources used by تلفنچی
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,891.51ms on /wp-admin/admin.php?page=vi-telefonchy)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.08 ▲0.30 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.75 ▼3.57 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.80 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.47 ▲3.54 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.41 ▼11.10 |
تنظیمات /wp-admin/admin.php?page=vi-telefonchy-opt | 3.30 | 1,056.11 |
تلفنچی /wp-admin/admin.php?page=vi-telefonchy | 3.31 | 1,891.51 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by تلفنچی
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.28 ▼0.98 | 1.58 ▲0.06 | 43.56 ▲0.95 |
Dashboard /wp-admin | 2,235 ▲44 | 5.02 ▼0.84 | 106.67 ▼1.02 | 32.58 ▼17.92 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.22 ▲0.21 | 38.76 ▲0.11 | 29.68 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,695 ▲175 | 22.90 ▼0.53 | 611.86 ▼102.20 | 46.21 ▼29.66 |
Media Library /wp-admin/upload.php | 1,489 ▲101 | 4.50 ▲0.30 | 112.26 ▲5.78 | 40.26 ▼2.76 |
تنظیمات /wp-admin/admin.php?page=vi-telefonchy-opt | 850 | 1.84 | 31.90 | 27.76 |
تلفنچی /wp-admin/admin.php?page=vi-telefonchy | 803 | 1.81 | 27.23 | 22.60 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vi-telefonchy-opt
- > Notice in wp-content/plugins/telefonchy/views/option-panel.php+9
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vi-telefonchy
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vi-telefonchy
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vi-telefonchy
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vi-telefonchy
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=vi-telefonchy
- > Notice in wp-content/plugins/telefonchy/views/calls-list.php+3
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/telefonchy/views/calls-list.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'ViTelefonchy\\classes\\ViSingleton' not found in wp-content/plugins/telefonchy/classes/OptionPanel.php:5
- > PHP Fatal error
Uncaught Error: Class 'ViTelefonchy\\classes\\ViSingleton' not found in wp-content/plugins/telefonchy/classes/RequestHandler.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/telefonchy/views/option-panel.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function ViTelefonchy\\plugin_dir_path() in wp-content/plugins/telefonchy/ViTelefonchy.php:26
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/telefonchy/views/calls-list.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/telefonchy/views/calls-list.php on line 3
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in telefonchy/assets to your readme.txt
telefonchy/ViTelefonchy.php 92% from 13 tests
The main PHP script in "تلفنچی" version 1.0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("telefonchy.php" instead of "ViTelefonchy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin881 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 188 | 305 | 874 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 6 | 1 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 26 | 44.07% |
▷ Public methods | 54 | 91.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.47% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 2 | 33.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ic.png | 3.68KB | 0.81KB | ▼ 77.95% |