Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.82ms] Passed 4 tests
Server-side resources used by Simple Calendar for Google
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.50 ▼1.83 |
Dashboard /wp-admin | 3.51 ▲0.16 | 52.49 ▼9.30 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.42 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 97.89 ▼2.17 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.57 ▼1.96 |
Settings /wp-admin/admin.php?page=simplecalendarforgoogle-settings | 3.40 | 35.56 |
Simple Calendar for Google /wp-admin/admin.php?page=simplecalendarforgoogle | 3.39 | 35.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
scalg_admin |
widget_recent-posts |
widget_recent-comments |
scalg_css |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Calendar for Google
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.08 ▼0.26 | 1.69 ▲0.05 | 42.42 ▲2.84 |
Dashboard /wp-admin | 2,227 ▲50 | 5.62 ▲0.10 | 91.64 ▲6.66 | 37.51 ▼3.65 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 1.95 ▼0.07 | 40.15 ▲5.68 | 35.28 ▼0.16 |
Add New Post /wp-admin/post-new.php | 6,220 ▲4,692 | 19.21 ▼3.99 | 833.36 ▲156.66 | 55.30 ▼6.59 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.19 ▼0.04 | 97.68 ▼16.23 | 43.20 ▼6.78 |
Settings /wp-admin/admin.php?page=simplecalendarforgoogle-settings | 1,277 | 2.49 | 63.45 | 28.86 |
Simple Calendar for Google /wp-admin/admin.php?page=simplecalendarforgoogle | 981 | 1.99 | 22.93 | 32.28 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 3× 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/simple-calendar-for-google/lib/class-simplecalendarforgoogle.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-calendar-for-google/lib/class-simplecalendarforgoogleadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-calendar-for-google/lib/class-simplecalendarforgoogleadmin.php:37
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: lists, google, block, calendar
simple-calendar-for-google/simplecalendarforgoogle.php 92% from 13 tests
"Simple Calendar for Google" version 2.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-calendar-for-google.php" instead of "simplecalendarforgoogle.php")
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
No dangerous file extensions were detected957 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 102 | 197 | 831 |
JavaScript | 4 | 12 | 36 | 106 |
JSON | 1 | 0 | 0 | 20 |
CSS | 1 | 3 | 17 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 67.50 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected