Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.68MB] [CPU: ▲28.88ms] Passed 4 tests
This is a short check of server-side resources used by Custom User Guide
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.48 ▲4.98 | 66.90 ▲26.43 |
Dashboard /wp-admin | 8.50 ▲5.16 | 77.96 ▲27.22 |
Posts /wp-admin/edit.php | 8.50 ▲5.11 | 79.55 ▲31.87 |
Add New Post /wp-admin/post-new.php | 9.40 ▲3.47 | 120.02 ▲30.01 |
Media Library /wp-admin/upload.php | 8.50 ▲5.23 | 87.11 ▲50.33 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.50 | 65.78 |
Server storage [IO: ▲3.42MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 204 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_customuserguide_tours |
wp_customuserguide_steps |
New WordPress options |
---|
widget_theysaidso_widget |
fs_gdpr |
db_upgraded |
widget_recent-posts |
fs_active_plugins |
fs_accounts |
theysaidso_admin_options |
fs_debug_mode |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom User Guide
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 15.14 ▲1.96 | 10.37 ▲5.29 | 32.13 ▼11.66 |
Dashboard /wp-admin | 2,236 ▲59 | 5.75 ▲0.19 | 98.77 ▲2.34 | 48.44 ▲7.28 |
Posts /wp-admin/edit.php | 2,150 ▲53 | 2.92 ▲0.98 | 43.60 ▲5.20 | 40.65 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.46 ▲0.48 | 656.88 ▼55.86 | 54.46 ▲3.12 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.93 ▲0.72 | 111.71 ▲5.81 | 52.17 ▲6.13 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,089 | 2.36 | 31.55 | 31.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/custom-user-guide/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 2 tables
- wp_customuserguide_tours
- wp_customuserguide_steps
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- fs_gdpr
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- fs_debug_mode
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: Invalid plugin version format
- Contributors: The plugin contributors field is not present
custom-user-guide/custom-user-guide.php Passed 13 tests
"Custom User Guide" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Custom User Guide plugin allows you to build visual tutorials/guides on your site.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected36,121 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 7,417 | 16,430 | 32,491 |
JavaScript | 12 | 281 | 264 | 2,168 |
CSS | 21 | 144 | 30 | 1,030 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 87 | 89 | 191 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,193 | |
▷ Static methods | 187 | 15.67% |
▷ Public methods | 819 | 68.65% |
▷ Protected methods | 31 | 2.60% |
▷ Private methods | 343 | 28.75% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tooltip-close.png | 1.58KB | 0.67KB | ▼ 57.86% |
assets/img/NubRight.png | 0.36KB | 0.29KB | ▼ 19.89% |
assets/img/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/img/NubLeft.png | 0.35KB | 0.28KB | ▼ 20.72% |
assets/img/doc/StepDescription.png | 11.83KB | 4.78KB | ▼ 59.55% |