Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/vcp-events/vcp-shortcode.php+9
Undefined variable: pre
Server metrics [RAM: ▼1.59MB] [CPU: ▼49.12ms] Passed 4 tests
Analyzing server-side resources used by VCP Events
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.06 | 6.82 ▼32.36 |
Dashboard /wp-admin | 2.42 ▼0.89 | 7.89 ▼39.78 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 8.37 ▼38.39 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 8.64 ▼85.94 |
Media Library /wp-admin/upload.php | 2.42 ▼0.81 | 8.09 ▼26.36 |
All Video Comments Plus /wp-admin/edit.php?post_type=vcp | 2.42 | 8.23 |
Add New /wp-admin/post-new.php?post_type=vcp | 2.42 | 8.96 |
Video Comments Plus Options /wp-admin/edit.php?post_type=vcp&page=Video_Comments_Plus | 2.42 | 9.87 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by VCP Events
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲131 | 14.48 ▲0.12 | 2.84 ▲0.82 | 39.31 ▼5.63 |
Dashboard /wp-admin | 2,244 ▲53 | 5.79 ▲0.93 | 98.99 ▼9.30 | 39.29 ▼6.65 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.01 ▲0.01 | 38.68 ▼5.96 | 35.85 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 18.22 ▼4.77 | 614.19 ▼61.72 | 56.72 ▲4.21 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.21 ▲0.04 | 103.46 ▲1.54 | 42.98 ▼0.73 |
All Video Comments Plus /wp-admin/edit.php?post_type=vcp | 1,102 | 1.96 | 31.32 | 27.80 |
Add New /wp-admin/post-new.php?post_type=vcp | 3,083 | 13.76 | 407.94 | 174.17 |
Video Comments Plus Options /wp-admin/edit.php?post_type=vcp&page=Video_Comments_Plus | 944 | 2.06 | 24.65 | 25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/vcp-events/vcp-shortcode.php+9
Undefined variable: pre
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=vcp&page=Video_Comments_Plus
- > Notice in wp-content/plugins/vcp-events/vcp-shortcode.php+9
Undefined variable: pre
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+246
Undefined index: video_link
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/Video-Comments-Plus.php+348
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+311
Undefined index: vcp_info_content
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/Video-Comments-Plus.php+350
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+246
Undefined index: vcp_color
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+311
Undefined index: vcp_public_comment_display
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+323
Undefined variable: basic_dropdown
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+311
Undefined index: vcp_fullscreen_comment_display
- > GET request to /wp-admin/post-new.php?post_type=vcp
- > Notice in wp-content/plugins/vcp-events/kjp_custom_posts.php+277
Undefined index: vcp_split
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 fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vcp-events/vcp_options_menu.php:147
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vcp-events/vcp_src_saver.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vcp-events/vcp-shortcode.php:9
- > PHP Warning
readfile(wp-content/plugins/vcp-events/vcp-src-db.xml): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/vcp-events/vcp-download-xml.php on line 7
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: video, google, livestreaming, comments, google plus
vcp-events/Video-Comments-Plus.php 92% from 13 tests
The main PHP file in "VCP Events" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("vcp-events.php" instead of "Video-Comments-Plus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin3,076 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 221 | 104 | 1,788 |
CSS | 2 | 71 | 7 | 596 |
JavaScript | 1 | 73 | 37 | 582 |
SVG | 10 | 0 | 0 | 110 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 85 | 87.63% |
▷ Protected methods | 12 | 12.37% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.22MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/InfoBoxIcon.png | 2.29KB | 1.63KB | ▼ 28.72% |
icons/More.png | 0.32KB | 0.17KB | ▼ 46.06% |
icons/Fullscreen.png | 0.71KB | 0.38KB | ▼ 46.98% |
icons/Comment_Display.png | 0.67KB | 0.45KB | ▼ 32.41% |
icons/Link.png | 3.13KB | 2.17KB | ▼ 30.52% |