Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▲464.90ms] 75% from 4 tests
This is a short check of server-side resources used by Video Player
Please take the time to fix the following items
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 464.90ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 548.99 ▲502.80 |
Dashboard /wp-admin | 3.53 ▲0.23 | 307.13 ▲256.07 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 331.98 ▲284.29 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 1,435.89 ▲1,340.35 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 862.92 ▲816.42 |
Server storage [IO: ▲14.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widgetic/secret |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Video Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,002 ▲2,241 | 28.95 ▲14.58 | 99.91 ▲98.23 | 34.56 ▼20.80 |
Dashboard /wp-admin | 3,587 ▲1,407 | 14.21 ▲8.56 | 247.93 ▲148.87 | 44.57 ▲2.73 |
Posts /wp-admin/edit.php | 3,176 ▲1,076 | 9.73 ▲7.70 | 163.73 ▲126.61 | 45.60 ▲10.54 |
Add New Post /wp-admin/post-new.php | 2,521 ▲1,117 | 27.55 ▲9.66 | 816.17 ▲254.08 | 69.87 ▲25.88 |
Media Library /wp-admin/upload.php | 2,129 ▲732 | 12.79 ▲8.67 | 248.76 ▲132.77 | 75.89 ▲25.45 |
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
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widgetic/secret
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: blockWidgetId in wp-content/plugins/video-player-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: blockPath in wp-content/plugins/video-player-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: widgetMeta in wp-content/plugins/video-player-by-widgetic/block.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-by-widgetic/block.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/video-player-by-widgetic/dashboard.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in video-player-by-widgetic/assets to your readme.txt
- Tags: There are too many tags (25 tag instead of maximum 10)
video-player-by-widgetic/index.php 92% from 13 tests
This is the main PHP file of "Video Player" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("video-player-by-widgetic.php" instead of "index.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
Good job! No executable or dangerous file extensions detected2,055 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 1,441 |
CSS | 3 | 74 | 58 | 432 |
PHP | 4 | 31 | 55 | 170 |
SVG | 1 | 0 | 0 | 10 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 2.26MB with 1.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 27.41KB | 7.69KB | ▼ 71.96% |
assets/icon-256x256.png | 4.11KB | 1.40KB | ▼ 65.96% |
assets/icon-128x128.png | 1.73KB | 0.70KB | ▼ 59.22% |
assets/icon.png | 1.21KB | 0.40KB | ▼ 66.75% |
assets/banner-772x250.png | 11.10KB | 4.50KB | ▼ 59.43% |