Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.65ms] Passed 4 tests
A check of server-side resources used by Cashineh Webservice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 40.02 ▼3.90 |
Dashboard /wp-admin | 3.40 ▲0.02 | 48.54 ▼13.96 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 48.76 ▼13.52 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.06 | 88.55 ▼11.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 38.73 ▼1.08 |
مدیریت کشینه /wp-admin/admin.php?page=cash_set_url | 3.29 | 33.38 |
صفحه اصلی /wp-admin/admin.php?page=cash_main | 3.29 | 34.32 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cash_order |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
cash_token_value |
widget_recent-comments |
db_upgraded |
cash_utm_value |
Browser metrics Passed 4 tests
An overview of browser requirements for Cashineh Webservice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲54 | 14.25 ▼0.10 | 1.81 ▼0.33 | 44.92 ▲3.31 |
Dashboard /wp-admin | 2,221 ▲41 | 5.59 ▼0.06 | 87.16 ▲0.64 | 65.93 ▲25.32 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 1.97 ▲0.01 | 39.18 ▼7.41 | 42.56 ▲4.30 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.19 ▼0.06 | 800.61 ▲98.42 | 54.68 ▼2.49 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.15 ▼0.04 | 108.51 ▲0.65 | 86.03 ▲36.82 |
مدیریت کشینه /wp-admin/admin.php?page=cash_set_url | 868 | 1.66 | 25.76 | 50.73 |
صفحه اصلی /wp-admin/admin.php?page=cash_main | 797 | 1.67 | 26.70 | 39.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_cash_order
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- cash_utm_value
- db_upgraded
- cash_token_value
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 everything seems fine, this is not 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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cashineh-web-service/inc/frontend.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cashineh-web-service/inc/ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cashineh-web-service/inc/backend.php:24
- > PHP Fatal error
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 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== Cashineh Webservice===
) - Screenshots: Add an image for screenshot #1 (Settings page)
cashineh-web-service/wpcashineh.php 92% from 13 tests
The main file in "Cashineh Webservice" v. 1.0.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("cashineh-web-service.php" instead of "wpcashineh.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected335 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 55 | 38 | 269 |
JavaScript | 1 | 8 | 0 | 44 |
CSS | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.10KB | 15.06KB | ▼ 60.47% |