Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.11MB] [CPU: ▼263.59ms] Passed 4 tests
Analyzing server-side resources used by FakerPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.53 | 57.75 ▼0.21 |
Dashboard /wp-admin | 6.07 ▲2.66 | 45.83 ▲11.20 |
Posts /wp-admin/edit.php | 6.29 ▲2.65 | 82.52 ▲47.18 |
Add New Post /wp-admin/post-new.php | 9.59 ▲2.62 | 169.69 ▼1,083.90 |
Media Library /wp-admin/upload.php | 6.01 ▲2.72 | 43.23 ▲18.55 |
Comments /wp-admin/admin.php?page=fakerpress&view=comments | 7.57 | 43.24 |
Settings /wp-admin/admin.php?page=fakerpress | 6.77 | 44.20 |
Users /wp-admin/admin.php?page=fakerpress&view=users | 7.67 | 46.42 |
Terms /wp-admin/admin.php?page=fakerpress&view=terms | 7.65 | 42.37 |
Posts /wp-admin/admin.php?page=fakerpress&view=posts | 7.59 | 72.90 |
Server storage [IO: ▲14.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 1,075 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for FakerPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲112 | 15.92 ▲0.54 | 5.58 ▼0.07 | 2.30 ▲0.05 |
Dashboard /wp-admin | 2,943 ▲82 | 6.25 ▲0.05 | 124.15 ▼12.65 | 177.52 ▼68.00 |
Posts /wp-admin/edit.php | 2,740 ▲46 | 3.05 ▼0.18 | 69.43 ▲6.70 | 346.64 ▲207.64 |
Add New Post /wp-admin/post-new.php | 1,710 ▲49 | 21.84 ▲5.05 | 451.32 ▼2.80 | 229.14 ▲26.43 |
Media Library /wp-admin/upload.php | 1,746 ▲51 | 5.47 ▼0.05 | 169.59 ▲15.81 | 230.11 ▼3.06 |
Comments /wp-admin/admin.php?page=fakerpress&view=comments | 2,544 | 4.08 | 100.24 | 195.70 |
Settings /wp-admin/admin.php?page=fakerpress | 1,152 | 3.29 | 61.08 | 151.51 |
Users /wp-admin/admin.php?page=fakerpress&view=users | 1,884 | 3.65 | 82.17 | 176.04 |
Terms /wp-admin/admin.php?page=fakerpress&view=terms | 1,719 | 3.53 | 77.48 | 171.48 |
Posts /wp-admin/admin.php?page=fakerpress&view=posts | 3,411 | 4.21 | 118.01 | 212.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/fakerpress/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/fakerpress/src/templates/fields/components/container/end.php
- 559× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Address' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/sr_Cyrl_RS/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Base' not found in wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_User.php:7
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Internet' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/it_IT/Internet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Internet' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/es_ES/Internet.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fakerpress/vendor/symfony/translation/Tests/DependencyInjection/TranslationPassTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Base' not found in wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_Term.php:7
- > PHP Fatal error
Uncaught Error: Interface 'FakerPress\\Fields\\Field_Interface' not found in wp-content/plugins/fakerpress/src/FakerPress/Fields/Field_Abstract.php:12
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/sk_SK/PhoneNumber.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Person' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/ru_RU/Person.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Base' not found in wp-content/plugins/fakerpress/vendor/fzaninotto/faker/src/Faker/Provider/Payment.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
fakerpress/fakerpress.php Passed 13 tests
The main PHP file in "FakerPress" ver. 0.5.3 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
FakerPress is a clean way to generate fake data to your WordPress installation, great for developers who need testing
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/fakerpress/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 722 | 24,337 | 19,886 | 123,374 |
PO File | 122 | 21,701 | 22,108 | 44,770 |
XSD | 4 | 99 | 76 | 4,991 |
Markdown | 9 | 637 | 0 | 2,553 |
JavaScript | 8 | 309 | 80 | 1,041 |
CSS | 6 | 124 | 22 | 562 |
JSON | 9 | 0 | 0 | 552 |
XML | 16 | 3 | 0 | 321 |
SVG | 1 | 0 | 0 | 11 |
Qt Linguist | 1 | 0 | 0 | 10 |
YAML | 4 | 0 | 0 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 157)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 157.00 |
Code structure | ||
---|---|---|
Namespaces | 118 | |
Interfaces | 17 | |
Traits | 0 | |
Classes | 600 | |
▷ Abstract classes | 10 | 1.67% |
▷ Concrete classes | 590 | 98.33% |
▷ Final classes | 1 | 0.17% |
Methods | 2,495 | |
▷ Static methods | 962 | 38.56% |
▷ Public methods | 2,260 | 90.58% |
▷ Protected methods | 132 | 5.29% |
▷ Private methods | 103 | 4.13% |
Functions | 226 | |
▷ Named functions | 65 | 28.76% |
▷ Anonymous functions | 161 | 71.24% |
Constants | 102 | |
▷ Global constants | 5 | 4.90% |
▷ Class constants | 97 | 95.10% |
▷ Public constants | 97 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/resources/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
src/resources/vendor/select2/select2.png | 0.60KB | 0.99KB | 0.00% |