Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼144.09ms] Passed 4 tests
Analyzing server-side resources used by Turnstile
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 40.29 ▼0.84 |
Dashboard /wp-admin | 3.35 ▲0.29 | 47.29 ▼4.21 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 46.57 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.25 ▼0.18 | 83.50 ▼566.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.22 | 41.43 ▲3.92 |
Turnstile user tracking /wp-admin/options-general.php?page=turnstile-setting-admin | 3.19 | 33.68 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Turnstile
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲254 | 17.71 ▲2.26 | 18.72 ▲9.78 | 47.34 ▼4.57 |
Dashboard /wp-admin | 2,971 ▲40 | 5.93 ▲0.03 | 146.25 ▼8.65 | 117.06 ▲0.04 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▼0.00 | 66.51 ▼4.28 | 90.24 ▼14.23 |
Add New Post /wp-admin/post-new.php | 1,760 ▲77 | 21.30 ▲3.12 | 293.40 ▼95.93 | 115.12 ▼3.75 |
Media Library /wp-admin/upload.php | 1,816 ▲6 | 5.05 ▲0.03 | 176.04 ▲13.98 | 130.48 ▲11.73 |
Turnstile user tracking /wp-admin/options-general.php?page=turnstile-setting-admin | 1,048 | 2.10 | 57.91 | 75.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/turnstile/src/includes/common/shortcodes.php
- > /wp-content/plugins/turnstile/src/includes/admin/class-turnstile-admin.php
- > /wp-content/plugins/turnstile/src/includes/admin/tinymce/wysiwyg.php
- > /wp-content/plugins/turnstile/turnstile.php
- > /wp-content/plugins/turnstile/src/includes/admin/auth.php
- > /wp-content/plugins/turnstile/src/includes/admin/class-turnstile-meta-boxes.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: analytics
turnstile/turnstile.php Passed 13 tests
The primary PHP file in "Turnstile" version 1.4.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Turnstile Analytics
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
There were no executable files found in this plugin1,318 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 265 | 138 | 1,073 |
JavaScript | 5 | 21 | 35 | 133 |
CSS | 3 | 5 | 1 | 112 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 8 | 72.73% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 67 | 83.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 16.25% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 5 | |
▷ Global constants | 5 | 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
6 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 85.02KB | 34.38KB | ▼ 59.56% |
src/public/img/turnstile_logo_64.png | 1.67KB | 2.14KB | 0.00% |
assets/icon-256x256.png | 25.14KB | 10.37KB | ▼ 58.74% |
assets/screenshot-1.png | 170.18KB | 48.73KB | ▼ 71.37% |
src/includes/admin/tinymce/icon_turnstile_24.png | 0.64KB | 0.87KB | 0.00% |