Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.64MB] [CPU: ▲22.30ms] 75% from 4 tests
Server-side resources used by WP How to - WordPress Tutorial Videos
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,072.87ms on /wp-admin/admin.php?page=how-to-wp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.51 ▲5.04 | 61.69 ▲22.79 |
Dashboard /wp-admin | 8.53 ▲5.22 | 74.43 ▲25.59 |
Posts /wp-admin/edit.php | 8.53 ▲5.17 | 68.98 ▲17.42 |
Add New Post /wp-admin/post-new.php | 9.02 ▲3.13 | 112.89 ▲23.39 |
Media Library /wp-admin/upload.php | 8.53 ▲5.30 | 61.91 ▲27.26 |
WP How to - WordPress Tutorial Videos /wp-admin/admin.php?page=how-to-wp | 8.53 | 2,072.87 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.53 | 60.22 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 176 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_wp_how_to_favs |
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
widget_recent-posts |
fs_active_plugins |
can_compress_scripts |
fs_gdpr |
db_upgraded |
wp_how_to_favs_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP How to - WordPress Tutorial Videos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲347 | 14.43 ▲0.07 | 1.69 ▲0.03 | 29.04 ▼17.98 |
Dashboard /wp-admin | 3,152 ▲964 | 5.99 ▲0.09 | 110.85 ▲8.05 | 43.50 ▼1.20 |
Posts /wp-admin/edit.php | 3,499 ▲1,407 | 9.73 ▲7.70 | 306.92 ▲266.04 | 37.13 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,930 ▲416 | 23.38 ▲5.81 | 680.30 ▲36.31 | 35.54 ▼23.29 |
Media Library /wp-admin/upload.php | 2,392 ▲1,004 | 6.10 ▲1.88 | 114.78 ▲6.04 | 44.99 ▲0.64 |
WP How to - WordPress Tutorial Videos /wp-admin/admin.php?page=how-to-wp | 2,714 | 14.44 | 241.25 | 48.24 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 2,779 | 14.58 | 221.05 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/how-to-wp/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 1 table in the database
- wp_wp_how_to_favs
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-posts
- fs_debug_mode
- can_compress_scripts
- fs_accounts
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
- fs_gdpr
- wp_how_to_favs_db_version
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/how-to-wp/assets/admin/partials/slide-in-section.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Other (warning) in unknown
https://www.youtube.com/s/player/4a66ccde/www-widgetapi.vflset/www-widgetapi.js 1232 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: diy, how to, help, wordpress plugins, video...
how-to-wp/how-to-wp.php 92% from 13 tests
The main PHP script in "WP How to - WordPress Tutorial Videos" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 358 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected32,268 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 7,262 | 16,154 | 30,669 |
JavaScript | 4 | 59 | 193 | 1,292 |
CSS | 12 | 48 | 4 | 307 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,143 | |
▷ Static methods | 175 | 15.31% |
▷ Public methods | 803 | 70.25% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 325 | 28.43% |
Functions | 95 | |
▷ Named functions | 95 | 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
9 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/iconmonstr-library-pink.png | 1.13KB | 0.88KB | ▼ 21.69% |
assets/admin/img/icon-pink.png | 1.25KB | 1.29KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/admin/img/iconmonstr-settings-yellow.png | 1.09KB | 0.56KB | ▼ 48.79% |
assets/admin/img/iconmonstr-settings-pink.png | 1.07KB | 0.52KB | ▼ 51.69% |