Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼5.57ms] Passed 4 tests
Analyzing server-side resources used by DemoWolf Video Tutorial Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.87 ▲0.83 |
Dashboard /wp-admin | 3.34 ▲0.04 | 42.67 ▼6.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.57 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 79.66 ▼14.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.78 ▲1.23 |
Import Videos /wp-admin/tools.php?page=upload_video | 3.23 | 31.64 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DemoWolf Video Tutorial Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.35 ▼1.03 | 1.68 ▼0.11 | 43.94 ▲3.59 |
Dashboard /wp-admin | 2,212 ▲24 | 4.85 ▼0.16 | 104.38 ▼5.31 | 39.55 ▼1.48 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.04 | 39.55 ▼1.99 | 35.09 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.06 ▲0.05 | 665.64 ▲9.58 | 56.14 ▼13.21 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▲0.00 | 95.95 ▼4.97 | 41.46 ▼1.99 |
Import Videos /wp-admin/tools.php?page=upload_video | 830 | 2.07 | 24.15 | 30.85 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/demowolf-video-tutorial-importer/import_videos.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Once the plugin is installed, navigate to "Tools" then "Import Videos" and you'll arrive at this screen. This is where you select your videos.xml file, choose your upload option, then click to import your videos.), #2 (An sample page that was created by the importer. The page that was created was "cPanel Paper Lantern End User series", and this screenshot shows the first video in the series.)
demowolf-video-tutorial-importer/import_videos.php 92% from 13 tests
"DemoWolf Video Tutorial Importer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("demowolf-video-tutorial-importer.php" instead of "import_videos.php")
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
Success! There were no dangerous files found in this plugin254 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 22 | 250 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
6 PNG files occupy 0.48MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 71.61KB | 25.43KB | ▼ 64.49% |
assets/icon-128x128.png | 13.19KB | 5.23KB | ▼ 60.38% |
screenshot-1.png | 71.61KB | 25.43KB | ▼ 64.49% |
screenshot-2.png | 123.82KB | 41.92KB | ▼ 66.14% |
assets/banner-772x250.png | 83.13KB | 26.63KB | ▼ 67.96% |