Benchmarks
Plugin footprint 65% 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.15MB] [CPU: ▼3.00ms] Passed 4 tests
This is a short check of server-side resources used by SS Device Detector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.93 ▲1.62 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.18 ▼5.05 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.17 ▲3.46 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 84.67 ▼10.60 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 37.74 ▲2.05 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
wp_mobcodes_deferred_admin_notices |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SS Device Detector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.07 | 1.71 ▼0.13 | 44.95 ▲4.54 |
Dashboard /wp-admin | 2,209 ▲24 | 5.85 ▲0.01 | 99.12 ▼3.10 | 36.18 ▼4.18 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.10 ▲0.06 | 43.08 ▲6.72 | 37.65 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.03 ▼5.58 | 658.75 ▼25.66 | 70.51 ▲6.15 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.22 ▼0.10 | 96.98 ▼4.82 | 40.37 ▼4.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SS_DeviceDetector::wp_mobcodes_deactivation() should not be called statically
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- wp_mobcodes_deferred_admin_notices
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ss-device-detector/ss-device-detector.php:85
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: ress, shortcode, content, responsive, adaptive
ss-device-detector/ss-device-detector.php Passed 13 tests
The entry point to "SS Device Detector" version 1.0.4 is a PHP file that has certain tags in its header comment area
99 characters long description:
Server-side solution to detect mobile, tablet and desktop devices. Creates functions and shortcodes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin720 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 175 | 627 | 703 |
Markdown | 1 | 9 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.90 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 12 | 31.58% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 2 | 5.26% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin