Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/solo-calendar/solo-calendar.php+35
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.35ms] Passed 4 tests
Analyzing server-side resources used by SoloCalendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.47 ▼33.24 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.57 ▼40.53 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.31 ▼40.89 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.06 ▼90.72 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.14 ▼30.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: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_solo_calendar_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SoloCalendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.18 ▼1.11 | 1.74 ▲0.01 | 38.45 ▼14.07 |
Dashboard /wp-admin | 2,223 ▲35 | 5.86 ▼0.04 | 95.90 ▼9.55 | 83.76 ▲37.14 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.98 ▲0.00 | 38.26 ▲3.65 | 34.88 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 22.06 ▼1.06 | 675.49 ▲42.43 | 41.49 ▼8.48 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.25 ▼0.04 | 94.74 ▲0.85 | 74.13 ▲31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/solo-calendar/solo-calendar.php+35
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_solo_calendar_widget
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/solo-calendar/solo-calendar.php
- > /wp-content/plugins/solo-calendar/admin/about.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/solo-calendar/admin/settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/solo-calendar/tinymce-plugin.js.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/solo-calendar/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: solocalendar, solo
solo-calendar/solo-calendar.php Passed 13 tests
The main PHP script in "SoloCalendar" version 1.2 is automatically included on every request by WordPress
107 characters long description:
This plugin adds a little button in your post editor with all booking forms from your SoloCalendar account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin256 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 56 | 22 | 250 |
CSS | 1 | 0 | 0 | 3 |
LESS | 1 | 0 | 4 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo16.png | 0.40KB | 0.48KB | 0.00% |
images/logo24.png | 0.49KB | 0.58KB | 0.00% |
images/logo64.png | 17.74KB | 0.44KB | ▼ 97.53% |
images/logo.png | 19.54KB | 0.44KB | ▼ 97.77% |