Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-farsi/includes/pdate.php+3
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.86MB] [CPU: ▼57.62ms] Passed 4 tests
A check of server-side resources used by WP-Farsi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.58 ▼40.11 |
Dashboard /wp-admin | 2.15 ▼1.19 | 6.67 ▼57.80 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 6.64 ▼37.78 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 6.15 ▼94.80 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 5.38 ▼29.35 |
Server storage [IO: ▲0.11MB] [DB: ▲0.53MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- There were 67 files (3,524.49KB) illegally modified outside of "wp-content/plugins/wp-farsi/" and "wp-content/uploads/"
- (new file) wp-content/languages/admin-fa_IR.mo
- (new file) wp-content/languages/fa_IR-17179a5f2930647c89151e365f843b6e.json
- (new file) wp-content/languages/continents-cities-fa_IR.po
- (new file) wp-content/languages/fa_IR-0cc31205f20441b3df1d1b46100f6b8d.json
- (new file) wp-content/languages/fa_IR-0ce75ad2f775d1cac9696967d484808c.json
- (new file) wp-content/languages/admin-fa_IR.po
- (new file) wp-content/languages/admin-network-fa_IR.po
- (new file) wp-content/languages/continents-cities-fa_IR.mo
- (new file) wp-content/languages/admin-network-fa_IR.mo
- (new file) wp-content/languages/fa_IR-0eebe503220d4a00341eb011b92769b4.json
- ...
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
WPLANG |
wpfa_nums |
Browser metrics Passed 4 tests
WP-Farsi: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 14.72 ▲0.37 | 1.81 ▲0.01 | 78.26 ▲34.97 |
Dashboard /wp-admin | 2,201 ▲27 | 5.84 ▲0.28 | 99.88 ▲11.86 | 75.74 ▲40.45 |
Posts /wp-admin/edit.php | 2,339 ▲239 | 2.08 ▲0.06 | 41.99 ▲1.00 | 68.09 ▲30.33 |
Add New Post /wp-admin/post-new.php | 1,608 ▲73 | 24.22 ▲5.78 | 677.14 ▲52.22 | 73.35 ▼0.95 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.25 ▲0.04 | 94.73 ▼0.09 | 53.18 ▲14.32 |
Uninstaller [IO: ▲3.44MB] [DB: ▲0.53MB] 50% 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-farsi/includes/pdate.php+3
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- db_upgraded
- WPLANG
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- wpfa_nums
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-farsi/includes/wpfa_admin.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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: There are too many tags (25 tag instead of maximum 10)
wp-farsi/wp-farsi.php 92% from 13 tests
This is the main PHP file of "WP-Farsi" version 4.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 247 characters long)
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
Good job! No executable or dangerous file extensions detected226 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 16 | 201 |
CSS | 1 | 2 | 3 | 18 |
JavaScript | 1 | 0 | 0 | 6 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin