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.05MB] [CPU: ▼7.90ms] Passed 4 tests
A check of server-side resources used by Staff List vCard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.23 ▼1.08 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.02 ▼19.54 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.80 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.67 ▼11.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.60 ▲4.95 |
vCards /wp-admin/edit.php?post_type=cpt_staff_lst_vcard | 3.33 | 35.58 |
Add New /wp-admin/post-new.php?post_type=cpt_staff_lst_vcard | 3.30 | 44.07 |
QR Code /wp-admin/edit.php?post_type=cpt_staff_lst_qrcode | 3.33 | 37.56 |
Admin /wp-admin/edit.php?post_type=cpt_staff_lst_vcard&page=abcfvc-admin-tabs | 3.23 | 33.07 |
Server storage [IO: ▲0.90MB] [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: 171 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Staff List vCard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.15 ▼1.07 | 1.84 ▲0.03 | 46.52 ▲3.05 |
Dashboard /wp-admin | 2,248 ▲60 | 4.91 ▼0.96 | 109.42 ▼11.81 | 42.97 ▼4.53 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.06 ▲0.00 | 36.23 ▲0.07 | 33.06 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,550 ▲21 | 23.29 ▲4.88 | 663.81 ▲21.54 | 56.68 ▲0.43 |
Media Library /wp-admin/upload.php | 1,424 ▲45 | 4.26 ▲0.05 | 104.42 ▼2.37 | 45.30 ▼3.20 |
vCards /wp-admin/edit.php?post_type=cpt_staff_lst_vcard | 1,095 | 1.99 | 31.38 | 33.76 |
Add New /wp-admin/post-new.php?post_type=cpt_staff_lst_vcard | 1,218 | 1.53 | 8.39 | 28.05 |
QR Code /wp-admin/edit.php?post_type=cpt_staff_lst_qrcode | 1,095 | 1.98 | 30.62 | 30.85 |
Admin /wp-admin/edit.php?post_type=cpt_staff_lst_vcard&page=abcfvc-admin-tabs | 714 | 1.53 | 6.56 | 16.87 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=cpt_staff_lst_vcard&page=abcfvc-admin-tabs
- > Error in wp-content/plugins/staff-list-vcard/admin/admin-tabs.php+19
Uncaught Error: Call to undefined function abcfl_html_a_tag() in wp-content/plugins/staff-list-vcard/admin/admin-tabs.php:19
Stack trace:
#0 wp-content/plugins/staff-list-vcard/admin/class-menu.php(28): abcfvc_admin_tabs()
#1 wp-includes/class-wp-hook.php(310): ABCFVC_Admin_Menu->load_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/edit.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 67× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\RoundBlockSizeMode\\RoundBlockSizeModeInterface' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/RoundBlockSizeMode/RoundBlockSizeModeMargin.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\RendererInterface' not found in wp-content/plugins/staff-list-vcard/vendor/BaconQrCode/Renderer/ImageRenderer.php:14
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Color\\ColorInterface' not found in wp-content/plugins/staff-list-vcard/vendor/BaconQrCode/Renderer/Color/Cmyk.php:8
- > PHP Fatal error
Uncaught Error: Interface 'DASPRiD\\Enum\\Exception\\ExceptionInterface' not found in wp-content/plugins/staff-list-vcard/vendor/DASPRiD/Enum/Exception/ExpectationException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Writer\\WriterInterface' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/Writer/PngWriter.php:17
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Eye\\EyeInterface' not found in wp-content/plugins/staff-list-vcard/vendor/BaconQrCode/Renderer/Eye/SquareEye.php:11
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Writer\\Result\\AbstractResult' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/Writer/Result/BinaryResult.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Label\\LabelInterface' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/Label/Label.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Label\\Alignment\\LabelAlignmentInterface' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/Label/Alignment/LabelAlignmentCenter.php:7
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Writer\\Result\\AbstractResult' not found in wp-content/plugins/staff-list-vcard/vendor/Endroid/QrCode/Writer/Result/DebugResult.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: abcfolio, qrcode, vcard, qr code, vcf...
staff-list-vcard/staff-list-vcard.php 92% from 13 tests
The entry point to "Staff List vCard" version 0.3.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,735 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 160 | 2,792 | 2,405 | 10,521 |
CSS | 1 | 33 | 6 | 156 |
JavaScript | 1 | 14 | 15 | 58 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 26 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 2 | 1.92% |
▷ Concrete classes | 102 | 98.08% |
▷ Final classes | 91 | 89.22% |
Methods | 696 | |
▷ Static methods | 91 | 13.07% |
▷ Public methods | 540 | 77.59% |
▷ Protected methods | 7 | 1.01% |
▷ Private methods | 149 | 21.41% |
Functions | 117 | |
▷ Named functions | 108 | 92.31% |
▷ Anonymous functions | 9 | 7.69% |
Constants | 83 | |
▷ Global constants | 5 | 6.02% |
▷ Class constants | 78 | 93.98% |
▷ Public constants | 12 | 15.38% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help.png | 0.45KB | 0.31KB | ▼ 31.66% |