Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.64ms] Passed 4 tests
Analyzing server-side resources used by Dan's Embedder for Google Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.25 ▼4.13 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.51 ▼5.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.68 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.08 ▼29.47 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.57 ▼3.24 |
Dan's gCal /wp-admin/tools.php?page=dans-gcal-settings | 3.22 | 32.08 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Dan's Embedder for Google Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲226 | 14.24 ▼0.36 | 19.94 ▲18.14 | 35.93 ▼9.74 |
Dashboard /wp-admin | 2,199 ▲28 | 5.64 ▲0.10 | 90.15 ▼9.78 | 40.03 ▼5.61 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.04 | 40.06 ▲3.79 | 35.00 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.23 ▲0.42 | 663.94 ▼12.73 | 56.73 ▼2.03 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▲0.06 | 96.64 ▼13.65 | 39.83 ▼7.67 |
Dan's gCal /wp-admin/tools.php?page=dans-gcal-settings | 887 | 1.99 | 25.58 | 31.44 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=dans-gcal-settings
- > Warning in wp-content/plugins/dans-gcal/dans-gcal.php+131
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/tools.php?page=dans-gcal-settings
- > Notice in wp-content/plugins/dans-gcal/dans-gcal.php+143
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dans-gcal/dans-gcal.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: embed, calendar, google calendar, gcal, dan
dans-gcal/dans-gcal.php Passed 13 tests
The entry point to "Dan's Embedder for Google Calendar" version 1.3.1 is a PHP file that has certain tags in its header comment area
52 characters long description:
A custom Google Calendar embed w/ list and full view
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
There were no executable files found in this plugin10,099 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 3,136 | 1,897 | 8,841 |
CSS | 6 | 321 | 220 | 1,025 |
PHP | 2 | 119 | 36 | 233 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/fullcalendar/lib/cupertino/images/ui-bg_glass_50_3baae3_1x400.png | 0.33KB | 0.16KB | ▼ 50.89% |
js/fullcalendar/lib/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.24KB | 0.16KB | ▼ 35.34% |
js/fullcalendar/lib/cupertino/images/ui-icons_72a7cf_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
js/fullcalendar/lib/cupertino/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
js/fullcalendar/lib/cupertino/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |