Benchmarks
Plugin footprint 65% from 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: ▲0.15MB] [CPU: ▲0.45ms] Passed 4 tests
This is a short check of server-side resources used by AutoRadomContent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.04 ▼3.09 |
Dashboard /wp-admin | 3.54 ▲0.24 | 3,816.27 ▲3,765.95 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 52.42 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 98.22 ▼0.28 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.09 ▲2.68 |
Server storage [IO: ▲9.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 604 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_random_content |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
AutoRadomContent: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲148 | 13.40 ▼0.96 | 1.64 ▼0.22 | 46.50 ▲3.42 |
Dashboard /wp-admin | 2,310 ▲136 | 5.93 ▲0.00 | 111.11 ▼6.18 | 88.10 ▲44.40 |
Posts /wp-admin/edit.php | 2,169 ▲83 | 2.07 ▲0.06 | 40.24 ▲0.36 | 37.46 ▲5.48 |
Add New Post /wp-admin/post-new.php | 1,592 ▲59 | 23.20 ▼0.10 | 767.51 ▲108.95 | 72.18 ▼2.11 |
Media Library /wp-admin/upload.php | 1,465 ▲77 | 4.23 ▲0.05 | 126.51 ▲24.46 | 52.25 ▲4.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_random_content
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 509× 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/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/ja_JP/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/is_IS/Company.php:8
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Internet' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/cs_CZ/Internet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Person' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/tr_TR/Person.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\it_IT\\Text' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/it_CH/Text.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/nb_NO/Company.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Address' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/es_ES/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/de_AT/Company.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Person' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/Person.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/auto-random-content/vendor/fzaninotto/faker/test/Faker/Provider/CompanyTest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 require attention:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #0, #0, #0 in auto-random-content/assets to your readme.txt
auto-random-content/auto-random-content.php 92% from 13 tests
The main file in "AutoRadomContent" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin100,921 lines of code in 586 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 568 | 12,998 | 9,768 | 84,050 |
JSON | 5 | 0 | 0 | 14,661 |
Markdown | 3 | 393 | 0 | 1,736 |
JavaScript | 3 | 27 | 51 | 167 |
Sass | 1 | 17 | 0 | 155 |
PO File | 2 | 46 | 0 | 114 |
YAML | 1 | 6 | 0 | 18 |
XML | 1 | 1 | 0 | 11 |
make | 1 | 2 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 126 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 564 | |
▷ Abstract classes | 1 | 0.18% |
▷ Concrete classes | 563 | 99.82% |
▷ Final classes | 0 | 0.00% |
Methods | 1,702 | |
▷ Static methods | 650 | 38.19% |
▷ Public methods | 1,608 | 94.48% |
▷ Protected methods | 48 | 2.82% |
▷ Private methods | 46 | 2.70% |
Functions | 111 | |
▷ Named functions | 2 | 1.80% |
▷ Anonymous functions | 109 | 98.20% |
Constants | 46 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 46 | 100.00% |
▷ Public constants | 46 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.99MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot2.png | 247.50KB | 97.15KB | ▼ 60.75% |
assets/banner-1544x500.png | 180.87KB | 78.72KB | ▼ 56.47% |
assets/screenshot1.png | 256.38KB | 100.66KB | ▼ 60.74% |
assets/icon-256x256.png | 0.73KB | 0.17KB | ▼ 76.77% |
assets/screenshot3.png | 250.32KB | 97.35KB | ▼ 61.11% |