Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼146.00ms] Passed 4 tests
This is a short check of server-side resources used by Embed Wat.TV Videos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 39.34 ▼0.65 |
Dashboard /wp-admin | 3.10 ▲0.04 | 44.30 ▼9.85 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.62 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 86.27 ▼574.66 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 33.19 ▲1.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Embed Wat.TV Videos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.90 ▲0.35 | 12.97 ▲0.24 | 47.08 ▼5.28 |
Dashboard /wp-admin | 2,970 ▲36 | 6.02 ▲0.10 | 146.22 ▼9.16 | 112.96 ▼3.38 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 71.15 ▲1.19 | 89.00 ▼4.81 |
Add New Post /wp-admin/post-new.php | 3,636 ▲1,953 | 14.96 ▼3.83 | 473.01 ▲65.92 | 107.38 ▼7.22 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.05 ▲0.01 | 152.52 ▼3.30 | 131.20 ▲11.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/wattv-embed/wat.tv.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: embed, wattv, video, oembed
wattv-embed/wat.tv.php 92% from 13 tests
The main file in "Embed Wat.TV Videos" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wattv-embed.php" instead of "wat.tv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin187 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 80 | 164 |
JSON | 1 | 0 | 0 | 20 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 8 | 72.73% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin