Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.09ms] Passed 4 tests
Analyzing server-side resources used by Vacation Rental Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.21 ▼0.60 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.23 ▼16.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.85 ▲3.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.16 ▼11.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.84 ▲0.19 |
VR Calendar /wp-admin/options-general.php?page=vr_calendar | 3.20 | 31.49 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Vacation Rental Calendar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.15 | 1.58 ▼0.00 | 40.83 ▼1.59 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▼0.03 | 84.66 ▼3.44 | 35.44 ▼4.21 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.02 | 36.25 ▼0.58 | 31.05 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.27 ▼4.78 | 596.32 ▼1.04 | 85.74 ▲32.38 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.01 | 97.51 ▼8.99 | 44.14 ▲2.19 |
VR Calendar /wp-admin/options-general.php?page=vr_calendar | 831 | 1.99 | 22.79 | 27.91 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=vr_calendar
- > Notice in wp-content/plugins/vr-calendar/php/admin-page.php+88
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vr-calendar/php/admin-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vr-calendar/php/admin-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vr-calendar/php/shortcodes.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== vr-calendar ===
) - Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
vr-calendar/vr-calendar.php Passed 13 tests
This is the main PHP file of "Vacation Rental Calendar" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Shortcode for displaying a vacation rental calendar via an iCal feed
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
No dangerous file extensions were detected689 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 108 | 50 | 416 |
PHP | 4 | 51 | 66 | 231 |
CSS | 3 | 0 | 0 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 23.50KB | 8.83KB | ▼ 62.43% |
screenshot-3.png | 66.49KB | 23.82KB | ▼ 64.17% |
screenshot-1.png | 36.37KB | 15.46KB | ▼ 57.48% |