Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.36MB] [CPU: ▲6.96ms] Passed 4 tests
An overview of server-side resources used by Device Detector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.70 ▲1.23 | 47.07 ▲6.97 |
Dashboard /wp-admin | 4.74 ▲1.44 | 55.83 ▲9.96 |
Posts /wp-admin/edit.php | 4.80 ▲1.43 | 60.89 ▲0.02 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 93.96 ▲10.87 |
Media Library /wp-admin/upload.php | 4.61 ▲1.37 | 50.27 ▲17.47 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 4.65 | 45.95 |
Devices /wp-admin/admin.php?page=podd-viewer | 5.41 | 50.07 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 4.71 | 43.43 |
Devices /wp-admin/admin.php?page=podd-tools | 4.57 | 40.11 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 4.65 | 42.85 |
Device Detector /wp-admin/admin.php?page=podd-settings | 4.87 | 46.41 |
Server storage [IO: ▲4.36MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,144 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_device_detector_statistics |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Device Detector
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲108 | 14.36 ▼0.23 | 1.85 ▲0.23 | 39.30 ▼3.51 |
Dashboard /wp-admin | 2,239 ▲59 | 5.64 ▼0.17 | 85.05 ▼9.13 | 37.38 ▼9.98 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.04 ▲0.01 | 36.38 ▼0.29 | 34.16 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.40 ▲0.29 | 700.43 ▲40.61 | 55.74 ▼2.50 |
Media Library /wp-admin/upload.php | 1,442 ▲48 | 4.20 ▲0.06 | 95.17 ▼14.24 | 40.55 ▼7.95 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 923 | 1.99 | 23.24 | 25.22 |
Devices /wp-admin/admin.php?page=podd-viewer | 1,790 | 3.63 | 115.95 | 68.48 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,098 | 2.01 | 23.19 | 33.54 |
Devices /wp-admin/admin.php?page=podd-tools | 881 | 2.05 | 25.16 | 24.66 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 923 | 2.16 | 23.21 | 24.76 |
Device Detector /wp-admin/admin.php?page=podd-settings | 1,017 | 2.04 | 25.47 | 32.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/device-detector/public/partials/device-detector-public-display.php
- 70× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UDD\\Parser\\Device\\AbstractDeviceParser' not found in wp-content/plugins/device-detector/includes/libraries/udd/Parser/Device/Console.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/device-detector/admin/partials/device-detector-admin-settings-about.php:14
- > PHP Fatal error
Uncaught Error: Class 'UDD\\Parser\\Device\\AbstractDeviceParser' not found in wp-content/plugins/device-detector/includes/libraries/udd/Parser/Device/HbbTv.php:20
- > PHP Fatal error
Uncaught Error: Class 'UDD\\Parser\\AbstractParser' not found in wp-content/plugins/device-detector/includes/libraries/udd/Parser/AbstractBotParser.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function PODeviceDetector\\Library\\esc_html__() in wp-content/plugins/device-detector/includes/libraries/class-libraries.php:67
- > PHP Fatal error
Uncaught Error: Class 'UDD\\Parser\\Client\\AbstractClientParser' not found in wp-content/plugins/device-detector/includes/libraries/udd/Parser/Client/PIM.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/device-detector/includes/libraries/psr/http-message/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/device-detector/admin/partials/device-detector-admin-settings-devices.php:15
- > PHP Fatal error
Uncaught Error: Class 'UDD\\Parser\\AbstractParser' not found in wp-content/plugins/device-detector/includes/libraries/udd/Parser/Client/AbstractClientParser.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/device-detector/admin/partials/device-detector-admin-settings-css.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: device, detector, detection, mobile, bot
device-detector/device-detector.php Passed 13 tests
This is the main PHP file of "Device Detector" version 3.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Full featured analytics reporting and management tool that detects all devices accessing your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin85,663 lines of code in 500 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 20 | 3,537 | 2,855 | 42,630 |
JavaScript | 12 | 1,925 | 2,305 | 20,459 |
PHP | 161 | 2,224 | 9,784 | 15,908 |
SVG | 285 | 0 | 1 | 4,251 |
CSS | 13 | 290 | 2 | 1,937 |
Markdown | 7 | 170 | 0 | 425 |
JSON | 2 | 0 | 0 | 53 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 303.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 17 | |
Traits | 15 | |
Classes | 112 | |
▷ Abstract classes | 7 | 6.25% |
▷ Concrete classes | 105 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 924 | |
▷ Static methods | 274 | 29.65% |
▷ Public methods | 670 | 72.51% |
▷ Protected methods | 138 | 14.94% |
▷ Private methods | 116 | 12.55% |
Functions | 25 | |
▷ Named functions | 9 | 36.00% |
▷ Anonymous functions | 16 | 64.00% |
Constants | 83 | |
▷ Global constants | 45 | 54.22% |
▷ Class constants | 38 | 45.78% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
610 compressed PNG files occupy 0.69MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libraries/morpheus/resources/brand/Fujitsu.png | 0.93KB | 0.91KB | ▼ 2.09% |
includes/libraries/morpheus/resources/browser/GB.png | 1.79KB | 1.78KB | ▼ 0.55% |
includes/libraries/morpheus/resources/browser/QW.png | 0.68KB | 0.66KB | ▼ 2.86% |
includes/libraries/morpheus/resources/browser/LX.png | 0.56KB | 0.56KB | 0.00% |
includes/libraries/morpheus/resources/browser/BH.png | 2.37KB | 2.36KB | 0.29% |