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
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▲0.37ms] Passed 4 tests
An overview of server-side resources used by Premmerce Dev Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.95 ▲0.50 |
Dashboard /wp-admin | 3.66 ▲0.35 | 44.62 ▼0.25 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.15 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 95.90 ▲4.25 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 34.86 ▲0.33 |
Plugin generator /wp-admin/admin.php?page=premmerce-dev-toolscreate_plugin | 3.49 | 32.05 |
Data generator /wp-admin/admin.php?page=premmerce-dev-toolsgenerate_data | 3.50 | 32.52 |
Data cleaner /wp-admin/admin.php?page=premmerce-dev-toolsclean_database | 3.50 | 31.55 |
Server storage [IO: ▲9.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 723 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Premmerce Dev Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.84 ▲0.28 | 1.72 ▲0.01 | 41.09 ▼2.14 |
Dashboard /wp-admin | 2,234 ▲45 | 5.77 ▲0.82 | 95.61 ▼16.90 | 40.51 ▲0.57 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.02 ▼0.00 | 40.16 ▲3.69 | 36.92 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 17.76 ▼5.18 | 615.00 ▲11.49 | 51.01 ▼7.29 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▼0.01 | 99.62 ▲5.02 | 42.36 ▼0.34 |
Plugin generator /wp-admin/admin.php?page=premmerce-dev-toolscreate_plugin | 921 | 2.02 | 22.68 | 24.25 |
Data generator /wp-admin/admin.php?page=premmerce-dev-toolsgenerate_data | 785 | 2.02 | 23.42 | 22.17 |
Data cleaner /wp-admin/admin.php?page=premmerce-dev-toolsclean_database | 1,006 | 2.05 | 22.73 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 560× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/test/Faker/Provider/de_AT/InternetTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Address' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Color' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/vi_VN/Color.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/he_IL/Company.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Person' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/hy_AM/Person.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Address' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/nl_NL/Address.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/ar_SA/Company.php:7
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Payment' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/ka_GE/Payment.php:5
- > PHP Fatal error
Uncaught Error: Class 'Faker\\Provider\\Company' not found in wp-content/plugins/premmerce-dev-tools/vendor/fzaninotto/faker/src/Faker/Provider/zh_TW/Company.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/premmerce-dev-tools/vendor/symfony/stopwatch/Tests/StopwatchTest.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: developers tools, debugging, wordpress debugging, code debug, data cleaner...
premmerce-dev-tools/premmerce-dev-tools.php Passed 13 tests
The entry point to "Premmerce Dev Tools" version 2.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
This plugin is aimed at making it easier to develop, test and debug the code on the WordPress platform.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin107,431 lines of code in 696 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 667 | 15,398 | 12,033 | 104,590 |
Markdown | 10 | 510 | 0 | 1,927 |
JSON | 7 | 0 | 0 | 519 |
PO File | 2 | 99 | 111 | 224 |
XML | 5 | 7 | 0 | 110 |
YAML | 3 | 10 | 2 | 43 |
JavaScript | 1 | 4 | 0 | 10 |
make | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 153 | |
Interfaces | 5 | |
Traits | 11 | |
Classes | 632 | |
▷ Abstract classes | 3 | 0.47% |
▷ Concrete classes | 629 | 99.53% |
▷ Final classes | 1 | 0.16% |
Methods | 2,290 | |
▷ Static methods | 794 | 34.67% |
▷ Public methods | 2,121 | 92.62% |
▷ Protected methods | 84 | 3.67% |
▷ Private methods | 85 | 3.71% |
Functions | 179 | |
▷ Named functions | 46 | 25.70% |
▷ Anonymous functions | 133 | 74.30% |
Constants | 127 | |
▷ Global constants | 3 | 2.36% |
▷ Class constants | 124 | 97.64% |
▷ Public constants | 124 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected