Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by Plugin Name: kPoint Video Embedder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.86 ▼2.50 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.99 ▼4.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.80 ▲1.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.22 ▼17.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.96 ▼3.69 |
kPoint Video Embedder /wp-admin/options-general.php?page=kpoint_kapsules_helper | 3.20 | 24.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Plugin Name: kPoint Video Embedder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.32 ▼1.08 | 4.21 ▲2.42 | 39.15 ▼1.40 |
Dashboard /wp-admin | 2,210 ▲19 | 4.83 ▼1.10 | 112.85 ▲13.61 | 41.25 ▲2.66 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▲0.04 | 36.50 ▲1.30 | 34.51 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.44 ▲0.31 | 655.07 ▼28.59 | 62.56 ▲7.26 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.23 ▲0.06 | 95.99 ▼1.51 | 40.56 ▼2.72 |
kPoint Video Embedder /wp-admin/options-general.php?page=kpoint_kapsules_helper | 789 | 2.03 | 26.22 | 26.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=kpoint_kapsules_helper
- > Notice in wp-content/plugins/kpoint-video-embedder/kPointSettings.php+67
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/kpoint-video-embedder/kPointPlugin.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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Plugin Name: kPoint Video Embedder===
) - Contributors: The plugin contributors field is not present
kpoint-video-embedder/kPointPlugin.php 92% from 13 tests
The entry point to "Plugin Name: kPoint Video Embedder" version 7.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kpoint-video-embedder.php" instead of "kPointPlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin164 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 18 | 139 |
Markdown | 1 | 13 | 0 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 6.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 13.29KB | 7.48KB | ▼ 43.72% |