Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.66ms] Passed 4 tests
This is a short check of server-side resources used by China Video Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.54 ▲5.76 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.59 ▼5.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.05 ▼3.94 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.70 ▲3.99 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.99 ▼1.41 |
China Video Block /wp-admin/options-general.php?page=cvb | 3.23 | 33.98 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/china-video-block/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by China Video Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.26 ▼1.30 | 1.99 ▼0.12 | 42.73 ▲1.35 |
Dashboard /wp-admin | 2,225 ▲22 | 5.85 ▼0.06 | 106.94 ▲2.33 | 42.07 ▲1.11 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▲0.01 | 38.64 ▲0.49 | 37.75 ▲0.15 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,672 | 18.92 ▼4.54 | 877.56 ▲207.43 | 52.37 ▲0.36 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.06 | 98.92 ▼10.22 | 42.63 ▼7.34 |
China Video Block /wp-admin/options-general.php?page=cvb | 796 | 2.05 | 23.62 | 31.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/china-video-block/src/settings.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #1 (China Video block inserted into a post.) image not found
china-video-block/plugin.php 85% from 13 tests
Analyzing the main PHP file in "China Video Block" version 0.2.5
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("china-video-block.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected16,886 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 16,609 |
PHP | 3 | 22 | 93 | 127 |
JavaScript | 4 | 8 | 39 | 93 |
Sass | 3 | 3 | 1 | 38 |
Markdown | 1 | 6 | 0 | 17 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 75.48KB | 20.38KB | ▼ 73.00% |