Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.59ms] Passed 4 tests
Analyzing server-side resources used by Nabooki Booking Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.92 ▼0.61 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.49 ▼13.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.30 ▼5.69 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.16 ▲4.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.82 ▼2.21 |
Nabooki /wp-admin/options-general.php?page=nabooki-booking-widgets | 3.33 | 31.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_nabookiwidget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Nabooki Booking Widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.64 ▼1.00 | 5.07 ▲3.44 | 37.10 ▼3.50 |
Dashboard /wp-admin | 2,215 ▲24 | 4.89 ▲0.01 | 96.20 ▼8.13 | 39.22 ▼1.59 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.03 ▲0.02 | 35.57 ▼4.36 | 31.50 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.27 ▲5.49 | 575.78 ▼49.05 | 62.15 ▲3.32 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.07 | 96.59 ▼3.94 | 41.02 ▼2.05 |
Nabooki /wp-admin/options-general.php?page=nabooki-booking-widgets | 828 | 2.08 | 26.16 | 28.51 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_nabookiwidget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× 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/nabooki-booking/nabooki-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nabooki-booking/nabooki.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
nabooki-booking/nabooki.php 92% from 13 tests
Analyzing the main PHP file in "Nabooki Booking Widgets" version 0.3
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("nabooki-booking.php" instead of "nabooki.php")
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
Everything looks great! No dangerous files found in this plugin648 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 182 | 114 | 612 |
JavaScript | 1 | 15 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 23.08% |
▷ Protected methods | 20 | 76.92% |
▷ 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin