Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.60MB] [CPU: ▲8.70ms] Passed 4 tests
This is a short check of server-side resources used by Nasim Persian Maker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 52.00 ▲6.06 |
Dashboard /wp-admin | 3.92 ▲0.62 | 58.89 ▲2.81 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 65.26 ▲12.19 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.61 | 112.98 ▲14.84 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 48.22 ▲13.75 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 133 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_cs_options |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Nasim Persian Maker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲229 | 15.00 ▲0.35 | 1.79 ▲0.12 | 41.83 ▼3.73 |
Dashboard /wp-admin | 2,399 ▲228 | 6.72 ▲1.11 | 126.27 ▲27.32 | 46.64 ▲3.50 |
Posts /wp-admin/edit.php | 2,327 ▲227 | 3.88 ▲1.90 | 60.80 ▲20.26 | 39.47 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,581 ▲53 | 23.99 ▲0.65 | 622.17 ▼67.55 | 33.78 ▼30.62 |
Media Library /wp-admin/upload.php | 1,468 ▲71 | 4.75 ▲0.55 | 87.35 ▼14.88 | 47.55 ▲5.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- _cs_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 13× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/nasim-persian-maker/admin/css/yekan/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/brasserie/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/plugin/index.php
- > /wp-content/plugins/nasim-persian-maker/admin/css/yekan/fonts/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/index.php
- > /wp-content/plugins/nasim-persian-maker/admin/css/index.php
- > /wp-content/plugins/nasim-persian-maker/admin/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/theme/zerif-lite/index.php
- > /wp-content/plugins/nasim-persian-maker/nasim-persian/framework/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Auto Persian), #2 (Upload Persian Pack), #3 (Dashboard)
nasim-persian-maker/nasim-presian-maker.php 92% from 13 tests
The entry point to "Nasim Persian Maker" version 2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nasim-persian-maker.php" instead of "nasim-presian-maker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected34,493 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 12,928 |
CSS | 13 | 588 | 289 | 6,792 |
JavaScript | 8 | 1,071 | 768 | 4,522 |
PO File | 9 | 2,222 | 3,777 | 4,407 |
PHP | 45 | 962 | 901 | 2,849 |
Sass | 5 | 284 | 0 | 1,818 |
SVG | 2 | 0 | 0 | 1,177 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 13.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 4 | 3.74% |
▷ Public methods | 107 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
screenshot-3.png | 18.11KB | 17.40KB | ▼ 3.90% |
screenshot-1.png | 18.02KB | 17.23KB | ▼ 4.38% |
assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
screenshot-2.png | 25.33KB | 24.21KB | ▼ 4.39% |