Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼292.35ms] Passed 4 tests
Server-side resources used by Huurkalender WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 60.83 ▲9.37 |
Dashboard /wp-admin | 3.46 ▲0.04 | 33.57 ▼0.25 |
Posts /wp-admin/edit.php | 3.69 ▲0.04 | 34.90 ▼1.25 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 105.78 ▼1,161.43 |
Media Library /wp-admin/upload.php | 3.34 ▲0.03 | 24.52 ▼6.46 |
Huurkalender plugin /wp-admin/options-general.php?page=huurkalender-wp | 3.32 | 26.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Huurkalender WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲47 | 15.90 ▲0.24 | 6.09 ▲0.27 | 2.17 ▼0.08 |
Dashboard /wp-admin | 2,897 ▲36 | 6.05 ▼0.09 | 116.41 ▼12.75 | 151.77 ▼7.41 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.36 ▼0.01 | 65.34 ▼1.38 | 136.16 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,664 ▼109 | 16.40 ▼5.52 | 409.76 ▼45.78 | 152.18 ▼2.31 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.53 ▼0.01 | 144.96 ▲2.29 | 191.51 ▼2.61 |
Huurkalender plugin /wp-admin/options-general.php?page=huurkalender-wp | 1,320 | 2.49 | 193.68 | 152.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/huurkalender-wp/huurkalender-wp.php:370
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: boekingskalender, boekingssysteem, verhuurkalender, huurkalender, beschikbaarheidskalender...
huurkalender-wp/huurkalender-wp.php 85% from 13 tests
The entry point to "Huurkalender WP" version 1.5.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin274 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 61 | 274 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
No PNG files were detected