Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.13ms] Passed 4 tests
Server-side resources used by Control V
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.85 ▲0.57 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.49 ▼5.77 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 57.76 ▲6.77 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.82 ▼3.90 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.58 ▲4.59 |
Add Template /wp-admin/post-new.php?post_type=ctrlv_templates | 3.44 | 56.50 |
Categories /wp-admin/edit-tags.php?taxonomy=ctrlv_templates_cat&post_type=ctrlv_templates | 3.32 | 40.12 |
Documentation /wp-admin/edit.php?post_type=ctrlv_templates&page=ctrlv-documentation | 3.29 | 35.98 |
Templates /wp-admin/edit.php?post_type=ctrlv_templates | 3.40 | 44.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Control V
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.54 ▼0.10 | 1.67 ▼0.08 | 44.21 ▼1.55 |
Dashboard /wp-admin | 2,217 ▲40 | 5.56 ▼0.02 | 87.00 ▼15.49 | 80.01 ▲35.58 |
Posts /wp-admin/edit.php | 2,241 ▲141 | 2.00 ▼0.04 | 41.28 ▲2.59 | 37.37 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,656 ▲128 | 23.60 ▲0.29 | 763.83 ▲72.96 | 61.35 ▲9.47 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.20 ▼0.03 | 94.41 ▼8.81 | 69.02 ▲26.54 |
Add Template /wp-admin/post-new.php?post_type=ctrlv_templates | 2,387 | 7.73 | 173.52 | 99.69 |
Categories /wp-admin/edit-tags.php?taxonomy=ctrlv_templates_cat&post_type=ctrlv_templates | 1,412 | 2.29 | 27.01 | 33.94 |
Documentation /wp-admin/edit.php?post_type=ctrlv_templates&page=ctrlv-documentation | 975 | 2.01 | 25.73 | 27.66 |
Templates /wp-admin/edit.php?post_type=ctrlv_templates | 1,782 | 1.98 | 35.66 | 31.99 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/control-v/inc/shortcodes.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-v/inc/cpt.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-v/inc/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-v/inc/documentation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/control-v/inc/cpt.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/control-v/inc/helper-window.php:15
- > 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 uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
control-v/liren-ctrlv.php 85% from 13 tests
"Control V" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("control-v.php" instead of "liren-ctrlv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin525 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 152 | 108 | 330 |
CSS | 1 | 28 | 3 | 138 |
PO File | 1 | 9 | 11 | 36 |
JavaScript | 1 | 23 | 18 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 19 | |
▷ Named functions | 19 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/liren-logo.png | 4.14KB | 2.27KB | ▼ 45.24% |
imgs/custom-post-icon.png | 0.45KB | 0.51KB | 0.00% |