Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲2.90ms] Passed 4 tests
Analyzing server-side resources used by Embed Peertube Playlist
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.18 ▲3.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.63 ▲0.59 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.94 ▲7.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.06 ▲1.50 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.33 ▲6.03 |
Settings /wp-admin/admin.php?page=playlist-pt-settings | 3.23 | 34.31 |
Peertube Playlists /wp-admin/admin.php?page=playlists_peertube | 3.24 | 33.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_playlists_peertube |
New WordPress options |
---|
theysaidso_admin_options |
pl_peertube_url |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Embed Peertube Playlist: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲180 | 13.58 ▼0.65 | 5.32 ▲3.13 | 41.97 ▼4.68 |
Dashboard /wp-admin | 2,263 ▲75 | 5.83 ▼0.05 | 104.84 ▼8.75 | 83.25 ▲36.17 |
Posts /wp-admin/edit.php | 2,161 ▲69 | 2.00 ▼0.04 | 36.33 ▼7.77 | 31.62 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,736 ▲217 | 22.33 ▼0.88 | 712.08 ▲91.10 | 50.04 ▼9.10 |
Media Library /wp-admin/upload.php | 1,454 ▲63 | 4.12 ▼0.05 | 100.69 ▲0.34 | 73.23 ▲27.81 |
Settings /wp-admin/admin.php?page=playlist-pt-settings | 866 | 2.05 | 24.99 | 26.73 |
Peertube Playlists /wp-admin/admin.php?page=playlists_peertube | 901 | 2.03 | 24.85 | 35.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- pl_peertube_url
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/embed-peertube-playlist/peertube-playlist.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (assets/screenshot.png)
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Please a description for screenshot #0 in embed-peertube-playlist/assets to your readme.txt
embed-peertube-playlist/peertube-playlist.php 77% from 13 tests
The entry point to "Embed Peertube Playlist" version 1.07 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
- Main file name: Name the main plugin file the same as the plugin slug ("embed-peertube-playlist.php" instead of "peertube-playlist.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin386 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 21 | 253 |
CSS | 2 | 15 | 0 | 94 |
SVG | 1 | 3 | 0 | 39 |
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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |