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.10MB] [CPU: ▼3.33ms] Passed 4 tests
Server-side resources used by UseStrict's Calendly Embedder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 35.02 ▼6.15 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.21 ▼15.18 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.73 ▲4.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.66 ▲4.01 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 35.56 ▲4.15 |
UseStrict's Calendly Embedder /wp-admin/options-general.php?page=Wp_Cal_Embed_Lite | 3.39 | 33.20 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by UseStrict's Calendly Embedder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.60 ▲0.25 | 1.72 ▼0.03 | 39.64 ▼3.86 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.02 | 92.38 ▲2.07 | 42.92 ▲6.40 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.01 | 40.94 ▲3.93 | 35.35 ▲3.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.03 ▼0.14 | 601.62 ▲0.78 | 45.13 ▼8.50 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.09 | 99.06 ▼1.40 | 42.14 ▼2.75 |
UseStrict's Calendly Embedder /wp-admin/options-general.php?page=Wp_Cal_Embed_Lite | 1,959 | 3.19 | 86.67 | 48.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cal-embedder-lite/cal-embedder-lite.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cal-embedder-lite/admin-settings.tmpl.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The settings screen, before connecting to the Calendly API.), #2 (By connecting to the Calendly API, we display a drop-down with your Profile screen and individual Event Types.), #3 (Sample drop-down values.), #4 (Extra options for displaying the **Pop-up Text Widget**, a.k.a. **Link** widget. Default is inline, as seen in the previous screenshots.), #5 (Extra options for displaying the **Pop-up Widget**, a.k.a. the **Badge** widget.)
cal-embedder-lite/cal-embedder-lite.php Passed 13 tests
The main PHP script in "UseStrict's Calendly Embedder" version 1.1.6.2 is automatically included on every request by WordPress
73 characters long description:
Simple embedding for Calendly (and soon various other calendar services).
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
Everything looks great! No dangerous files found in this plugin1,572 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 198 | 207 | 838 |
JavaScript | 4 | 103 | 131 | 639 |
CSS | 1 | 23 | 3 | 95 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 13 | 56.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 43.48% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 1.72MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 472.91KB | 144.05KB | ▼ 69.54% |
screenshot-2.png | 326.56KB | 99.24KB | ▼ 69.61% |
screenshot-5.png | 354.95KB | 94.61KB | ▼ 73.35% |
screenshot-4.png | 269.58KB | 70.85KB | ▼ 73.72% |
screenshot-1.png | 332.41KB | 102.15KB | ▼ 69.27% |