Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.29ms] Passed 4 tests
A check of server-side resources used by WP101 Video Tutorial Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.70 ▼3.41 |
Dashboard /wp-admin | 3.33 ▼0.01 | 52.39 ▼12.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.09 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.39 ▼27.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.25 ▲2.70 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP101 Video Tutorial Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.24 ▼0.48 | 1.81 ▲0.13 | 41.58 ▼0.88 |
Dashboard /wp-admin | 2,211 ▲31 | 5.64 ▲0.02 | 89.03 ▼11.20 | 39.58 ▼5.76 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.02 | 41.23 ▲1.40 | 38.31 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.70 ▲0.60 | 660.61 ▼9.57 | 50.80 ▲0.85 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.01 | 96.36 ▼8.75 | 42.88 ▼2.43 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\TemplateTags\\get_api_key() in wp-content/plugins/wp101/views/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\Admin\\add_action() in wp-content/plugins/wp101/includes/admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp101/views/add-ons.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\Addons\\add_action() in wp-content/plugins/wp101/includes/addons.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\TemplateTags\\add_action() in wp-content/plugins/wp101/includes/template-tags.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\Deprecated\\add_action() in wp-content/plugins/wp101/includes/deprecated.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp101/wp101.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\Migrate\\add_action() in wp-content/plugins/wp101/includes/migrate.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function WP101\\Shortcode\\add_action() in wp-content/plugins/wp101/includes/shortcode.php:24
- > PHP Notice
Undefined variable: public_key in wp-content/plugins/wp101/views/listings.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: help, wp101, screencast, tutorials, learn...
wp101/wp101.php 92% from 13 tests
The main PHP script in "WP101 Video Tutorial Plugin" version 5.3.1 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "5.4")
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 plugin1,195 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 319 | 593 | 1,130 |
JSON | 1 | 0 | 0 | 61 |
CSS | 2 | 2 | 2 | 2 |
JavaScript | 2 | 0 | 4 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 4 | 14.81% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 5 | 18.52% |
▷ Private methods | 1 | 3.70% |
Functions | 46 | |
▷ Named functions | 43 | 93.48% |
▷ Anonymous functions | 3 | 6.52% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.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
No PNG files were detected