Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▼1.78ms] Passed 4 tests
An overview of server-side resources used by oEmbed Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 44.28 ▲5.94 |
Dashboard /wp-admin | 4.38 ▲1.08 | 54.41 ▲4.06 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 57.48 ▲13.39 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 88.84 ▼30.50 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 49.09 ▲16.30 |
oEmbed /wp-admin/admin.php?page=oemm-tools | 4.48 | 44.76 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 4.28 | 40.05 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 4.32 | 41.99 |
oEmbed Manager /wp-admin/admin.php?page=oemm-settings | 4.38 | 45.83 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 454 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for oEmbed Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲92 | 14.39 ▲0.16 | 1.96 ▲0.07 | 39.18 ▼4.64 |
Dashboard /wp-admin | 2,262 ▲82 | 5.65 ▼0.02 | 91.27 ▲5.21 | 38.64 ▲0.08 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.02 ▲0.05 | 39.29 ▲4.15 | 35.38 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.28 ▲0.35 | 656.06 ▼63.55 | 59.40 ▼2.85 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.27 ▼0.03 | 105.87 ▼7.27 | 45.90 ▼1.48 |
oEmbed /wp-admin/admin.php?page=oemm-tools | 1,108 | 2.04 | 29.67 | 40.56 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 888 | 2.00 | 23.92 | 27.71 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,081 | 2.01 | 24.67 | 33.69 |
oEmbed Manager /wp-admin/admin.php?page=oemm-settings | 968 | 2.04 | 24.65 | 32.80 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/oembed-manager/public/partials/oembed-manager-public-display.php
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/oembed-manager/admin/partials/oembed-manager-admin-settings-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oembed-manager/perfopsone/functions.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/oembed-manager/admin/partials/oembed-manager-admin-settings-consumer.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Oemm\\Plugin\\Feature\\add_shortcode() in wp-content/plugins/oembed-manager/includes/features/class-wpcli.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/oembed-manager/includes/libraries/psr/http-client/NetworkExceptionInterface.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/oembed-manager/includes/features/class-posts.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/oembed-manager/admin/partials/oembed-manager-admin-settings-producer.php:16
- > PHP Fatal error
Uncaught Error: Class 'Oemm\\Plugin\\Feature\\Integration' not found in wp-content/plugins/oembed-manager/includes/features/class-dnt.php:25
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/oembed-manager/includes/features/class-posts.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/oembed-manager/admin/partials/oembed-manager-admin-settings-about.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: privacy, manager, gdpr, oembed, embed
oembed-manager/oembed-manager.php Passed 13 tests
"oEmbed Manager" version 2.12.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Manage oEmbed capabilities of your website and take a new step in the GDPR compliance of your embedded content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected13,432 lines of code in 418 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 1,174 | 6,587 | 8,086 |
SVG | 286 | 0 | 1 | 4,252 |
CSS | 5 | 119 | 1 | 745 |
Markdown | 7 | 130 | 0 | 274 |
JSON | 2 | 0 | 0 | 53 |
JavaScript | 4 | 1 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 13 | |
Traits | 15 | |
Classes | 68 | |
▷ Abstract classes | 3 | 4.41% |
▷ Concrete classes | 65 | 95.59% |
▷ Final classes | 0 | 0.00% |
Methods | 619 | |
▷ Static methods | 216 | 34.89% |
▷ Public methods | 455 | 73.51% |
▷ Protected methods | 109 | 17.61% |
▷ Private methods | 55 | 8.89% |
Functions | 17 | |
▷ Named functions | 6 | 35.29% |
▷ Anonymous functions | 11 | 64.71% |
Constants | 54 | |
▷ Global constants | 43 | 79.63% |
▷ Class constants | 11 | 20.37% |
▷ Public constants | 11 | 100.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
5 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/medias/uk-cookie-consent-icon-128x128.png | 13.22KB | 5.32KB | ▼ 59.74% |
admin/medias/do-not-track-stats-icon-128x128.png | 16.06KB | 6.08KB | ▼ 62.16% |
admin/medias/cookie-notice-icon-128x128.png | 3.69KB | 2.73KB | ▼ 25.91% |
admin/medias/gdpr-cookie-compliance-icon-128x128.png | 28.17KB | 6.12KB | ▼ 78.27% |
admin/medias/cookie-law-info-icon-128x128.png | 7.00KB | 3.01KB | ▼ 56.96% |