Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.52ms] Passed 4 tests
Server-side resources used by PUD Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 43.92 ▲7.10 |
Dashboard /wp-admin | 3.51 ▲0.17 | 54.92 ▼7.90 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 43.06 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 90.76 ▲1.12 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 36.01 ▲3.02 |
New Generator /wp-admin/admin.php?page=pud_generator | 3.53 | 42.72 |
General /wp-admin/admin.php?page=pud_general | 3.42 | 31.54 |
Placeholders /wp-admin/admin.php?page=pud_placeholder | 3.42 | 43.03 |
All Generator /wp-admin/admin.php?page=pud_manage | 3.42 | 32.21 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: 4 new tables, 13 new options
New tables |
---|
wp_pud_generator_placeholders |
wp_pud_generator_logs |
wp_pud_placeholders |
wp_pud_generator |
New WordPress options |
---|
pud_page_visibility |
pud_tour_generator |
pud_max_page |
db_upgraded |
pud_default_author |
can_compress_scripts |
pud_tour_manage |
pud_page_status |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PUD Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 13.43 ▼1.34 | 7.49 ▲5.90 | 38.11 ▼1.80 |
Dashboard /wp-admin | 2,224 ▲44 | 5.55 ▼0.12 | 83.91 ▼1.50 | 39.40 ▼2.58 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.99 ▲0.02 | 35.55 ▼0.24 | 33.21 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 18.24 ▼5.54 | 649.33 ▼18.74 | 63.84 ▲12.34 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.22 ▲0.01 | 107.61 ▲7.99 | 47.85 ▲5.81 |
New Generator /wp-admin/admin.php?page=pud_generator | 2,266 | 5.81 | 111.17 | 64.19 |
General /wp-admin/admin.php?page=pud_general | 3,422 | 31.98 | 1,024.50 | 29.73 |
Placeholders /wp-admin/admin.php?page=pud_placeholder | 1,470 | 2.94 | 75.63 | 40.85 |
All Generator /wp-admin/admin.php?page=pud_manage | 1,435 | 2.94 | 59.80 | 35.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_pud_placeholders
- wp_pud_generator_logs
- wp_pud_generator
- wp_pud_generator_placeholders
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pud-generator/public/partials/pud-generator-public-display.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function page_tabs() in wp-content/plugins/pud-generator/admin/partials/pud-generator-admin-general.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function page_tabs() in wp-content/plugins/pud-generator/admin/partials/pud-generator-admin-generator.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function page_tabs() in wp-content/plugins/pud-generator/admin/partials/pud-generator-admin-manage.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function page_tabs() in wp-content/plugins/pud-generator/admin/partials/pud-generator-admin-placeholder.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #5 in pud-generator/assets to your readme.txt
pud-generator/pud-generator.php 92% from 13 tests
This is the main PHP file of "PUD Generator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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 plugin6,424 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 15 | 212 | 472 | 2,059 |
JavaScript | 8 | 101 | 436 | 1,107 |
CSS | 7 | 91 | 28 | 587 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/DataTables-1.10.18/images/sort_asc.png | 0.15KB | 0.25KB | 0.00% |
admin/css/DataTables-1.10.18/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/css/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/css/DataTables-1.10.18/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/css/modal-bg.png | 2.73KB | 0.09KB | ▼ 96.54% |