Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.25ms] Passed 4 tests
This is a short check of server-side resources used by HTML5 Webcam/Screen/Mic Recorder for Video Comments and Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.08 ▼2.74 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.81 ▼0.82 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 53.51 ▲3.91 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.18 ▲0.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.27 ▲1.74 |
Form Recorder /wp-admin/admin.php?page=irecorder | 3.22 | 39.58 |
Settings /wp-admin/admin.php?page=irecorder-settings | 3.23 | 34.09 |
Server storage [IO: ▲5.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
VWinlineRecorderOptions |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for HTML5 Webcam/Screen/Mic Recorder for Video Comments and Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲95 | 13.29 ▼0.34 | 1.72 ▼0.52 | 40.96 ▼4.88 |
Dashboard /wp-admin | 2,261 ▲58 | 4.89 ▼1.03 | 100.75 ▼0.96 | 47.07 ▲5.13 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.01 ▼0.02 | 37.29 ▲4.07 | 35.03 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,578 ▲45 | 23.62 ▲0.43 | 685.94 ▼0.32 | 59.92 ▲1.13 |
Media Library /wp-admin/upload.php | 1,440 ▲49 | 4.21 ▼0.03 | 104.24 ▼0.39 | 46.15 ▲2.85 |
Form Recorder /wp-admin/admin.php?page=irecorder | 988 | 2.15 | 29.26 | 34.38 |
Settings /wp-admin/admin.php?page=irecorder-settings | 988 | 2.18 | 25.25 | 38.63 |
Uninstaller [IO: ✅] [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
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- VWinlineRecorderOptions
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/video-comments-webcam-recorder/inlinerecorder.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Video comments: include video/audio in WordPress comments), #2 (HTML5 Recorder: recorder webcam/microphone 100% web based)
video-comments-webcam-recorder/inlinerecorder.php 85% from 13 tests
The entry point to "HTML5 Webcam/Screen/Mic Recorder for Video Comments and Forms" version 2.2.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("video-comments-webcam-recorder.php" instead of "inlinerecorder.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 302 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin9,707 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,882 |
PHP | 3 | 310 | 82 | 771 |
CSS | 2 | 1 | 385 | 51 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 25 | 92.59% |
▷ Public methods | 27 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 141.50KB | 44.29KB | ▼ 68.70% |
static/media/flags.99f63ae7.png | 27.46KB | 29.21KB | 0.00% |