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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.79ms] Passed 4 tests
A check of server-side resources used by Tracking for UPS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.17 ▼3.92 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.43 ▼5.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.11 ▲5.33 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.62 ▲0.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.32 ▲1.21 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, 9 new options
New WordPress options |
---|
tracking-for-ups-general |
tracking-for-ups-example |
tracking-for-ups-configuration |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Tracking for UPS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 13.51 ▼0.93 | 7.81 ▲5.92 | 43.56 ▼5.98 |
Dashboard /wp-admin | 2,222 ▲31 | 4.85 ▼0.09 | 109.53 ▲7.25 | 43.66 ▲4.61 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.97 ▼0.09 | 40.43 ▲1.29 | 34.82 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.40 ▲5.76 | 592.50 ▼49.04 | 50.99 ▼2.83 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.17 ▼0.07 | 95.74 ▼4.63 | 41.21 ▼0.10 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- tracking-for-ups-example
- widget_recent-posts
- theysaidso_admin_options
- tracking-for-ups-configuration
- widget_theysaidso_widget
- tracking-for-ups-general
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
4 plugin tags: wordpress, tracking, plugin, ups
tracking-for-ups/ups-tracking.php 77% from 13 tests
The primary PHP file in "Tracking for UPS" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tracking-for-ups.php" instead of "ups-tracking.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/Languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,043 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 504 | 975 | 1,734 |
JSON | 14 | 0 | 0 | 1,229 |
PO File | 1 | 15 | 18 | 49 |
Markdown | 1 | 19 | 0 | 22 |
JavaScript | 3 | 4 | 58 | 9 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 15 | 62.50% |
Methods | 161 | |
▷ Static methods | 42 | 26.09% |
▷ Public methods | 118 | 73.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 43 | 26.71% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.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
There were not PNG files found in your plugin