Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.42ms] Passed 4 tests
A check of server-side resources used by FakerPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 38.80 ▼2.07 |
Dashboard /wp-admin | 3.59 ▲0.28 | 50.51 ▲4.19 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 45.43 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 87.49 ▼7.78 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.83 ▲7.23 |
Comments /wp-admin/admin.php?page=fakerpress&view=comments | 4.63 | 60.71 |
Settings /wp-admin/admin.php?page=fakerpress | 3.46 | 31.95 |
Users /wp-admin/admin.php?page=fakerpress&view=users | 4.02 | 33.94 |
Terms /wp-admin/admin.php?page=fakerpress&view=terms | 4.01 | 35.24 |
Posts /wp-admin/admin.php?page=fakerpress&view=posts | 4.15 | 33.64 |
Server storage [IO: ▲13.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,722 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for FakerPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.37 ▼0.16 | 1.72 ▲0.12 | 46.94 ▲6.91 |
Dashboard /wp-admin | 2,230 ▲53 | 5.57 ▼0.09 | 86.49 ▼1.03 | 41.43 ▼0.21 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.00 ▲0.01 | 34.21 ▼4.49 | 37.29 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.13 ▼0.41 | 585.26 ▼82.40 | 44.37 ▼14.76 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.28 ▲0.07 | 94.68 ▼3.75 | 43.41 ▼4.15 |
Comments /wp-admin/admin.php?page=fakerpress&view=comments | 2,223 | 3.20 | 64.87 | 44.82 |
Settings /wp-admin/admin.php?page=fakerpress | 912 | 2.17 | 28.10 | 42.80 |
Users /wp-admin/admin.php?page=fakerpress&view=users | 1,523 | 2.59 | 48.46 | 37.81 |
Terms /wp-admin/admin.php?page=fakerpress&view=terms | 1,387 | 2.50 | 44.98 | 37.14 |
Posts /wp-admin/admin.php?page=fakerpress&view=posts | 2,970 | 3.62 | 88.80 | 49.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fakerpress/src/templates/fields/components/container/end.php
- 669× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Payment' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/fi_FI/Payment.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/fakerpress/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/fr_FR/PhoneNumber.php:5
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\DBAL\\Types\\VarDateTimeType' not found in wp-content/plugins/fakerpress/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeType.php:12
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/de_DE/PhoneNumber.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Address' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/th_TH/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/ar_SA/Company.php:7
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Base' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/Internet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/fa_IR/PhoneNumber.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/fakerpress/vendor/fakerphp/faker/src/Faker/Provider/hu_HU/PhoneNumber.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
fakerpress/fakerpress.php Passed 13 tests
This is the main PHP file of "FakerPress" version 0.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | Executable files are not allowed as they can serve as attack vectors
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
- .bat - Batch File in Windows
- ☣ wp-content/plugins/fakerpress/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,445 | 30,956 | 43,592 | 151,766 |
XSD | 3 | 92 | 48 | 2,803 |
Markdown | 14 | 717 | 0 | 1,759 |
JSON | 12 | 0 | 0 | 1,327 |
JavaScript | 8 | 311 | 80 | 1,047 |
CSS | 6 | 124 | 22 | 562 |
XML | 1 | 0 | 0 | 247 |
SVG | 1 | 0 | 0 | 11 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 129 | |
Interfaces | 51 | |
Traits | 29 | |
Classes | 686 | |
▷ Abstract classes | 20 | 2.92% |
▷ Concrete classes | 666 | 97.08% |
▷ Final classes | 29 | 4.35% |
Methods | 3,619 | |
▷ Static methods | 1,270 | 35.09% |
▷ Public methods | 3,238 | 89.47% |
▷ Protected methods | 208 | 5.75% |
▷ Private methods | 173 | 4.78% |
Functions | 505 | |
▷ Named functions | 125 | 24.75% |
▷ Anonymous functions | 380 | 75.25% |
Constants | 166 | |
▷ Global constants | 9 | 5.42% |
▷ Class constants | 157 | 94.58% |
▷ Public constants | 154 | 98.09% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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% |