Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.34MB] [CPU: ▲3.48ms] Passed 4 tests
An overview of server-side resources used by مهندس محمدپور Pmpr
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.94 | 46.13 ▲0.19 |
Dashboard /wp-admin | 4.78 ▲1.48 | 58.88 ▲3.43 |
Posts /wp-admin/edit.php | 4.82 ▲1.47 | 63.45 ▲12.11 |
Add New Post /wp-admin/post-new.php | 7.39 ▲1.51 | 94.61 ▼1.80 |
Media Library /wp-admin/upload.php | 4.70 ▲1.48 | 57.99 ▲20.04 |
Commons /wp-admin/admin.php?page=pmpr-plg-common | 4.84 | 49.44 |
Modules /wp-admin/admin.php?page=pmpr-plg-module | 4.95 | 48.55 |
Customs /wp-admin/admin.php?page=pmpr-plg-custom | 4.95 | 44.85 |
Covers /wp-admin/admin.php?page=pmpr-plg-cover | 4.95 | 43.05 |
Settings /wp-admin/admin.php?page=pmpr-plg-settings | 4.66 | 46.75 |
Server storage [IO: ▲5.38MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- You have illegally modified 1 file (0.16KB) outside of "wp-content/plugins/pmpr-ir/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/index.php
Filesystem: 870 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by مهندس محمدپور Pmpr
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.34 ▲0.06 | 1.58 ▼0.27 | 48.16 ▲4.10 |
Dashboard /wp-admin | 2,274 ▲97 | 5.65 ▲0.12 | 86.00 ▼9.23 | 47.83 ▲5.47 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.05 ▲0.02 | 46.36 ▲8.56 | 46.16 ▲10.49 |
Add New Post /wp-admin/post-new.php | 6,296 ▲4,761 | 21.44 ▼1.63 | 990.41 ▲329.01 | 39.74 ▼8.91 |
Media Library /wp-admin/upload.php | 1,485 ▲85 | 4.28 ▲0.04 | 112.29 ▼2.52 | 44.23 ▼4.15 |
Commons /wp-admin/admin.php?page=pmpr-plg-common | 1,010 | 2.20 | 41.49 | 48.65 |
Modules /wp-admin/admin.php?page=pmpr-plg-module | 988 | 2.05 | 39.88 | 39.20 |
Customs /wp-admin/admin.php?page=pmpr-plg-custom | 1,006 | 2.01 | 29.46 | 34.35 |
Covers /wp-admin/admin.php?page=pmpr-plg-cover | 1,009 | 1.99 | 27.82 | 31.24 |
Settings /wp-admin/admin.php?page=pmpr-plg-settings | 1,156 | 2.05 | 27.14 | 27.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- pmpr-plg-active_components
- widget_theysaidso_widget
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 no errors were found, 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 items
- 328× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/Command/ListCommand.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Question\\Question' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/Question/ChoiceQuestion.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Command\\BaseCommand' not found in wp-content/plugins/pmpr-ir/vendor/composer/composer/src/Composer/Command/SuggestsCommand.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Output\\OutputInterface' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/Output/Output.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Package\\PackageInterface' not found in wp-content/plugins/pmpr-ir/vendor/composer/composer/src/Composer/Package/CompletePackageInterface.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Output\\OutputInterface' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/Output/ConsoleOutputInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'Composer\\DependencyResolver\\Transaction' not found in wp-content/plugins/pmpr-ir/vendor/composer/composer/src/Composer/DependencyResolver/LockTransaction.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/SingleCommandApplication.php:21
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Command\\BaseCommand' not found in wp-content/plugins/pmpr-ir/vendor/composer/composer/src/Composer/Command/RunScriptCommand.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Input\\Input' not found in wp-content/plugins/pmpr-ir/vendor/symfony/console/Input/ArgvInput.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: development, wordpress, programming, pmpr
pmpr-ir/pmpr-ir.php 92% from 13 tests
"مهندس محمدپور Pmpr" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("./translation")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/pmpr-ir/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 679 | 17,258 | 30,770 | 83,624 |
Markdown | 75 | 3,363 | 0 | 10,106 |
JSON | 42 | 31 | 0 | 7,789 |
PO File | 2 | 284 | 333 | 717 |
YAML | 6 | 58 | 3 | 212 |
Bourne Again Shell | 1 | 10 | 14 | 59 |
XML | 1 | 2 | 0 | 22 |
SVG | 4 | 0 | 0 | 10 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 129)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 22.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 357.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 129.00 |
Code structure | ||
---|---|---|
Namespaces | 115 | |
Interfaces | 72 | |
Traits | 15 | |
Classes | 535 | |
▷ Abstract classes | 31 | 5.79% |
▷ Concrete classes | 504 | 94.21% |
▷ Final classes | 48 | 9.52% |
Methods | 4,641 | |
▷ Static methods | 556 | 11.98% |
▷ Public methods | 3,558 | 76.66% |
▷ Protected methods | 488 | 10.51% |
▷ Private methods | 595 | 12.82% |
Functions | 507 | |
▷ Named functions | 102 | 20.12% |
▷ Anonymous functions | 405 | 79.88% |
Constants | 514 | |
▷ Global constants | 12 | 2.33% |
▷ Class constants | 502 | 97.67% |
▷ Public constants | 428 | 85.26% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/img/placeholder.png | 5.80KB | 8.22KB | 0.00% |