Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼3.30ms] Passed 4 tests
Server-side resources used by Awesome Tracker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.81 ▼1.43 |
Dashboard /wp-admin | 3.76 ▲0.41 | 57.33 ▼12.10 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 52.87 ▲5.11 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 101.54 ▼4.79 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 43.93 ▲7.22 |
Tracked Records /wp-admin/admin.php?page=awesome-tracker | 3.57 | 37.73 |
Settings /wp-admin/admin.php?page=awesometracker-settings | 3.60 | 37.44 |
API Routes /wp-admin/admin.php?page=at-routes | 5.10 | 41.07 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_awesome_tracker_visits |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
awesome_tracker_version |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Awesome Tracker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.28 ▼0.13 | 1.62 ▼0.38 | 44.27 ▲0.09 |
Dashboard /wp-admin | 2,224 ▲44 | 5.58 ▼0.04 | 91.80 ▼8.50 | 44.00 ▲2.02 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.15 ▲0.18 | 41.34 ▲6.01 | 39.70 ▲4.39 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 22.99 ▼0.16 | 672.10 ▼2.67 | 63.27 ▼1.85 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.20 ▼0.05 | 103.01 ▼7.99 | 46.19 ▲0.13 |
Tracked Records /wp-admin/admin.php?page=awesome-tracker | 1,221 | 1.82 | 32.24 | 31.43 |
Settings /wp-admin/admin.php?page=awesometracker-settings | 1,126 | 10.74 | 197.19 | 30.57 |
API Routes /wp-admin/admin.php?page=at-routes | 1,102 | 10.39 | 82.12 | 25.83 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=awesome-tracker
- > Notice in wp-content/plugins/awesome-tracker/inc/tables/class-at-log-table.php+205
Undefined index: orderby
- > GET request to /wp-admin/admin.php?page=awesome-tracker
- > Notice in wp-content/plugins/awesome-tracker/inc/tables/class-at-log-table.php+207
Undefined index: order
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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=at-routes
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
Button isDefault prop is deprecated since version 5.4 and will be removed in version 6.2. Please use variant=\"secondary\" instead.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: analytics, tracking
awesome-tracker/awesome-tracker.php 92% from 13 tests
The main file in "Awesome Tracker" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,588 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 795 | 887 | 2,307 |
PO File | 1 | 104 | 113 | 236 |
JavaScript | 3 | 5 | 1 | 20 |
Markdown | 1 | 4 | 0 | 19 |
CSS | 4 | 2 | 8 | 5 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 74 | 49.66% |
▷ Public methods | 105 | 70.47% |
▷ Protected methods | 24 | 16.11% |
▷ Private methods | 20 | 13.42% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/external/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
js/external/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |