Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/millvi-wp/index.php+66
Use of undefined constant MillviPluginController - assumed 'MillviPluginController' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.95MB] [CPU: ▼52.17ms] Passed 4 tests
Server-side resources used by millvi WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 5.32 ▼33.70 |
Dashboard /wp-admin | 2.06 ▼1.25 | 7.82 ▼40.24 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 6.76 ▼38.19 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 6.21 ▼96.55 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 8.76 ▼27.82 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
millvi WP: 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,852 ▲117 | 13.66 ▼0.73 | 1.75 ▼0.10 | 36.74 ▼1.14 |
Dashboard /wp-admin | 2,265 ▲76 | 5.14 ▲0.23 | 105.98 ▼15.75 | 36.27 ▼4.92 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.43 ▲0.41 | 35.25 ▼5.39 | 35.26 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,546 ▲12 | 23.58 ▲0.27 | 677.73 ▲44.22 | 37.24 ▼13.94 |
Media Library /wp-admin/upload.php | 1,450 ▲59 | 4.55 ▲0.38 | 103.41 ▲6.84 | 44.26 ▲3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/millvi-wp/index.php+66
Use of undefined constant MillviPluginController - assumed 'MillviPluginController' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× 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/millvi-wp/config.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/millvi-wp/config.php:10
- > PHP Warning
Use of undefined constant MILLVI_RIGHT_PUBLIC - assumed 'MILLVI_RIGHT_PUBLIC' (this will throw an Error in a future version of PHP) in wp-content/plugins/millvi-wp/urls.php on line 13
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Video Uploading), #2 (Player Setting), #3 (Viewing Report)
millvi-wp/index.php 85% from 13 tests
"millvi WP" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("millvi-wp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,210 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 730 | 354 | 3,539 |
PHP | 13 | 603 | 608 | 1,798 |
HTML | 10 | 48 | 65 | 1,108 |
CSS | 3 | 91 | 20 | 610 |
PO File | 1 | 20 | 22 | 122 |
YAML | 1 | 11 | 0 | 32 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 41.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 43 | 43.43% |
▷ Public methods | 58 | 58.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 41 | 41.41% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 34 | |
▷ Global constants | 34 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.59MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 688.37KB | 303.58KB | ▼ 55.90% |
assets/img/eye.png | 1.32KB | 1.27KB | ▼ 3.84% |
assets/img/sort_desc.png | 0.17KB | 0.17KB | 0.00% |
assets/img/sort_asc.png | 0.16KB | 0.17KB | 0.00% |
assets/img/dashicon_millvi16.png | 1.15KB | 0.34KB | ▼ 70.64% |