Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/backtracks/includes/api/backtracks-api.php+246
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.33MB] [CPU: ▲1,245.62ms] 75% from 4 tests
This is a short check of server-side resources used by Backtracks
The following require your attention
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,245.62ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 63.98 ▼16.62 |
Dashboard /wp-admin | 3.82 ▲0.42 | 2,130.12 ▲2,092.40 |
Posts /wp-admin/edit.php | 4.08 ▲0.44 | 2,107.66 ▲2,068.87 |
Add New Post /wp-admin/post-new.php | 7.30 ▲0.33 | 2,137.60 ▲886.74 |
Media Library /wp-admin/upload.php | 3.77 ▲0.47 | 2,070.84 ▲2,043.47 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 2 new options
New WordPress options |
---|
bt_settings_general |
bt_settings_api |
Browser metrics Passed 4 tests
Checking browser requirements for Backtracks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,268 ▲515 | 24.14 ▲8.91 | 70.15 ▲63.89 | 2.26 ▼0.23 |
Dashboard /wp-admin | 3,389 ▲532 | 7.28 ▲1.19 | 170.77 ▲38.99 | 178.62 ▲6.05 |
Posts /wp-admin/edit.php | 3,203 ▲509 | 3.84 ▲0.60 | 76.14 ▲8.62 | 206.88 ▲57.13 |
Add New Post /wp-admin/post-new.php | 1,987 ▲326 | 19.09 ▲3.24 | 449.09 ▲24.65 | 207.03 ▲43.91 |
Media Library /wp-admin/upload.php | 2,199 ▲501 | 6.34 ▲0.75 | 137.08 ▼11.09 | 197.22 ▼43.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 87% 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:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- License: No value
backtracks/backtracks.php 85% from 13 tests
The main PHP script in "Backtracks" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin2,261 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 620 | 788 | 1,538 |
CSS | 2 | 27 | 18 | 485 |
JavaScript | 4 | 49 | 11 | 208 |
SVG | 1 | 0 | 1 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 14.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 1 | 6.25% |
Methods | 75 | |
▷ Static methods | 12 | 16.00% |
▷ Public methods | 66 | 88.00% |
▷ Protected methods | 3 | 4.00% |
▷ Private methods | 6 | 8.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin