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: ▲1.20MB] [CPU: ▲4.42ms] Passed 4 tests
This is a short check of server-side resources used by Traffic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.06 | 44.47 ▲8.28 |
Dashboard /wp-admin | 4.56 ▲1.26 | 52.75 ▲7.74 |
Posts /wp-admin/edit.php | 4.65 ▲1.29 | 52.71 ▲1.98 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.25 | 88.44 ▼0.31 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 49.65 ▲15.13 |
API Traffic /wp-admin/admin.php?page=traffic-viewer | 5.18 | 50.06 |
Traffic /wp-admin/admin.php?page=traffic-settings | 4.63 | 45.56 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 4.43 | 42.26 |
Live API Calls /wp-admin/admin.php?page=traffic-console | 4.42 | 41.39 |
Consoles /wp-admin/admin.php?page=perfopsone-consoles | 4.43 | 36.76 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 4.46 | 41.57 |
Server storage [IO: ▲2.58MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 503 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_traffic_statistics |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Traffic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 14.18 ▼0.18 | 1.74 ▲0.09 | 40.17 ▲0.36 |
Dashboard /wp-admin | 2,242 ▲62 | 5.70 ▲0.04 | 83.37 ▼1.45 | 38.80 ▼5.48 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.02 ▲0.05 | 35.83 ▼0.05 | 34.84 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,550 ▲13 | 23.09 ▼0.09 | 677.37 ▲8.66 | 53.75 ▼12.02 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.24 ▲0.04 | 94.86 ▼6.82 | 41.83 ▼1.90 |
API Traffic /wp-admin/admin.php?page=traffic-viewer | 1,854 | 4.58 | 125.09 | 78.31 |
Traffic /wp-admin/admin.php?page=traffic-settings | 1,187 | 2.01 | 25.90 | 32.98 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 896 | 2.15 | 26.64 | 29.99 |
Live API Calls /wp-admin/admin.php?page=traffic-console | 900 | 2.13 | 31.28 | 40.80 |
Consoles /wp-admin/admin.php?page=perfopsone-consoles | 900 | 2.15 | 22.38 | 22.73 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,071 | 2.01 | 24.03 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=perfopsone-analytics
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=traffic-console
- > Warning in wp-content/plugins/traffic/includes/system/class-sharedmemory.php+96
shmop_open(): unable to attach or create shared memory segment 'No such file or directory'
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/traffic/public/partials/traffic-public-display.php
- 52× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\Mutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/NoMutex.php:17
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\LockMutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/SemaphoreMutex.php:18
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\RedisMutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/PredisMutex.php:21
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\exception\\MutexException' not found in wp-content/plugins/traffic/includes/libraries/lock/exception/LockReleaseException.php:20
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\Mutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/LockMutex.php:18
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\SpinlockMutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/RedisMutex.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/traffic/admin/partials/traffic-admin-settings-main.php:14
- > PHP Warning
Use of undefined constant TRAFFIC_SLUG - assumed 'TRAFFIC_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/traffic/includes/system/class-environment.php on line 37
- > PHP Fatal error
Uncaught Error: Class 'malkusch\\lock\\mutex\\LockMutex' not found in wp-content/plugins/traffic/includes/libraries/lock/mutex/PgAdvisoryLockMutex.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/traffic/admin/partials/traffic-admin-view-analytics.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
5 plugin tags: api, rest-api, statistics, analytics, reports
traffic/traffic.php Passed 13 tests
"Traffic" version 2.11.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Full featured monitoring & analytics for WordPress APIs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin40,425 lines of code in 471 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 2,273 | 3,000 | 22,350 |
PHP | 138 | 1,490 | 8,265 | 11,264 |
SVG | 285 | 0 | 1 | 4,251 |
CSS | 19 | 322 | 10 | 2,038 |
Markdown | 7 | 196 | 0 | 469 |
JSON | 2 | 0 | 0 | 53 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 289.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 14 | |
Traits | 15 | |
Classes | 94 | |
▷ Abstract classes | 6 | 6.38% |
▷ Concrete classes | 88 | 93.62% |
▷ Final classes | 1 | 1.14% |
Methods | 732 | |
▷ Static methods | 244 | 33.33% |
▷ Public methods | 523 | 71.45% |
▷ Protected methods | 121 | 16.53% |
▷ Private methods | 88 | 12.02% |
Functions | 30 | |
▷ Named functions | 11 | 36.67% |
▷ Anonymous functions | 19 | 63.33% |
Constants | 69 | |
▷ Global constants | 50 | 72.46% |
▷ Class constants | 19 | 27.54% |
▷ Public constants | 16 | 84.21% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected