Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.83ms] Passed 4 tests
A check of server-side resources used by TomS Product Video
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.66 ▲5.14 |
Dashboard /wp-admin | 3.45 ▲0.14 | 47.77 ▲2.05 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 45.87 ▼3.63 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.66 ▼8.65 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.75 ▲2.90 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TomS Product Video
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.14 ▼1.26 | 1.93 ▲0.16 | 44.92 ▲0.34 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.93 | 96.18 ▼9.35 | 39.63 ▼2.87 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 34.88 ▼1.66 | 36.38 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.00 ▼0.51 | 652.14 ▲0.15 | 54.68 ▲10.08 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.07 | 98.58 ▼1.17 | 42.90 ▲1.70 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: video url, add to cart video, video from url, product video, video player...
toms-product-video/toms-product-video.php 92% from 13 tests
The primary PHP file in "TomS Product Video" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin994 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 56 | 39 | 558 |
CSS | 1 | 0 | 10 | 199 |
PO File | 2 | 52 | 54 | 146 |
JavaScript | 1 | 8 | 2 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/toms-product-video.png | 6.83KB | 3.83KB | ▼ 43.95% |
assets/img/toms-wvp-preview.png | 13.70KB | 5.59KB | ▼ 59.21% |
assets/img/toms-wvp-preview-7.png | 10.19KB | 4.51KB | ▼ 55.74% |