Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.64ms] Passed 4 tests
Server-side resources used by LH Oembed White List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.55 ▲0.95 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.59 ▼5.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.91 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.88 ▼16.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.38 ▲1.23 |
Oembed White List /wp-admin/options-general.php?page=lh-oembed-white-list/lh-oembed-white-list.php | 3.23 | 32.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for LH Oembed White List
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼0.90 | 1.68 ▼0.05 | 36.59 ▼11.71 |
Dashboard /wp-admin | 2,210 ▲25 | 5.91 ▲0.05 | 95.40 ▼3.68 | 40.63 ▼5.37 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.06 | 33.78 ▼8.06 | 33.36 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,517 ▼26 | 17.66 ▼0.62 | 665.54 ▲73.88 | 61.44 ▲8.95 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.18 ▲0.01 | 94.78 ▼1.02 | 43.30 ▲0.22 |
Oembed White List /wp-admin/options-general.php?page=lh-oembed-white-list/lh-oembed-white-list.php | 780 | 2.03 | 24.24 | 23.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=lh-oembed-white-list/lh-oembed-white-list.php
- > Notice in wp-content/plugins/lh-oembed-white-list/partials/option-settings.php+3
Undefined property: LH_Oembed_white_list_plugin::$hidden_field_name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-oembed-white-list/lh-oembed-white-list.php
- > Notice in wp-content/plugins/lh-oembed-white-list/partials/option-settings.php+4
Undefined property: LH_Oembed_white_list_plugin::$namespace
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-oembed-white-list/partials/option-settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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 require attention:
- Requires at least: Version format is invalid
lh-oembed-white-list/lh-oembed-white-list.php Passed 13 tests
The principal PHP file in "LH Oembed White List" v. 1.02 is loaded by WordPress automatically on each request
62 characters long description:
Embed any link from the web easily as a beautiful Content Card
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 detected132 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 20 | 132 |
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.52 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 4 | 33.33% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin