Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▲164.42ms] Passed 4 tests
Server-side resources used by BiblioDAM Connect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.11 ▼0.91 |
Dashboard /wp-admin | 3.49 ▲0.15 | 299.50 ▲243.65 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 331.87 ▲285.25 |
Add New Post /wp-admin/post-new.php | 3.49 ▼2.39 | 271.08 ▲185.27 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 266.33 ▲229.67 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BiblioDAM Connect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 19.35 ▲4.69 | 1.71 ▼0.34 | 41.18 ▼4.88 |
Dashboard /wp-admin | 2,290 ▲110 | 10.51 ▲4.83 | 221.45 ▲134.08 | 106.24 ▲64.29 |
Posts /wp-admin/edit.php | 2,290 ▲193 | 9.36 ▲7.36 | 90.26 ▲55.61 | 83.50 ▲49.51 |
Add New Post /wp-admin/post-new.php | 6,220 ▲4,694 | 19.04 ▼3.90 | 779.98 ▲116.35 | 158.91 ▲104.73 |
Media Library /wp-admin/upload.php | 1,527 ▲124 | 11.98 ▲7.76 | 139.14 ▲40.84 | 125.68 ▲80.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/bibliodam-connect/ptx/ptxDcPluginAddOns.php+124
Undefined index: uploadToS3
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/bibliodam-connect/admin/partials/addons/ptx-inc-tabs-addons.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bibliodam-connect/admin/partials/dc-admin-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/bibliodam-connect/admin/partials/settings/ptx-inc-tabs-settings.php:2
- > PHP Notice
Undefined variable: notificationCount in wp-content/plugins/bibliodam-connect/admin/partials/addons/ptx-inc-menu-add-ons.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/bibliodam-connect/admin/partials/addons/ptx-inc-menu-add-ons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/bibliodam-connect/admin/partials/settings/ptx-inc-menu-settings.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: websuite, video, bibliodam, publishers
bibliodam-connect/bibliodam-connect.php Passed 13 tests
"BiblioDAM Connect" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
BiblioDAM Connect allows seamless integration of BiblioDAM media onto your WordPress website(s).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,390 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 320 | 1,307 | 1,509 |
JavaScript | 11 | 175 | 394 | 875 |
CSS | 6 | 0 | 5 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 20.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 5 | 6.58% |
▷ Public methods | 69 | 90.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.21% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/bibliodam.png | 4.67KB | 3.44KB | ▼ 26.34% |
admin/img/bibliodam.png | 4.67KB | 3.44KB | ▼ 26.34% |
admin/img/launcher-icon.png | 5.30KB | 3.11KB | ▼ 41.23% |
admin/img/logo.png | 0.94KB | 0.92KB | ▼ 1.36% |
admin/assets/img/launcher-icon.png | 5.30KB | 3.11KB | ▼ 41.23% |