Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.54ms] Passed 4 tests
A check of server-side resources used by Connect Nuki Smartlock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.96 ▼9.43 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.86 ▼8.38 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.99 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.58 ▼10.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.64 ▼1.09 |
Licenses /wp-admin/admin.php?page=connect_nuki_licenses | 3.22 | 34.80 |
Nuki Settings /wp-admin/admin.php?page=connect_your_nuki_smartlock | 3.22 | 32.40 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Connect Nuki Smartlock: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.36 ▼0.26 | 1.76 ▼0.93 | 41.34 ▼4.68 |
Dashboard /wp-admin | 2,257 ▲86 | 5.59 ▼0.08 | 85.46 ▼15.50 | 42.33 ▼2.87 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.02 ▲0.04 | 38.63 ▼0.23 | 35.79 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.08 ▼0.04 | 698.13 ▲31.47 | 68.02 ▲10.66 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▼0.03 | 98.09 ▼10.00 | 47.13 ▼0.86 |
Licenses /wp-admin/admin.php?page=connect_nuki_licenses | 797 | 2.00 | 25.50 | 27.58 |
Nuki Settings /wp-admin/admin.php?page=connect_your_nuki_smartlock | 808 | 2.00 | 24.59 | 27.75 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Nuki\\Dashboard\\add_action() in wp-content/plugins/connect-your-nuki-smartlock/inc/Dashboard.php:30
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: smartlock, nuki, automation, bookings
connect-your-nuki-smartlock/connect-your-nuki-smartlock.php Passed 13 tests
"Connect Nuki Smartlock" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Connect your Nuki Smartlock to your WordPress and manage it!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,157 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 155 | 294 | 856 |
Bourne Shell | 1 | 23 | 11 | 147 |
YAML | 1 | 7 | 0 | 64 |
Sass | 3 | 4 | 0 | 54 |
CSS | 2 | 2 | 10 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 30.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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