Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.21ms] Passed 4 tests
Analyzing server-side resources used by Mobile Detect For CSS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.99 ▲3.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.97 ▲1.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.15 ▼4.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.17 ▼0.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.54 ▼0.85 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Mobile Detect For CSS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.16 ▼1.24 | 1.58 ▼0.53 | 41.09 ▼3.29 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.04 | 111.73 ▼2.85 | 37.84 ▼7.15 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.02 | 39.43 ▲1.21 | 34.30 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.27 ▲0.17 | 607.23 ▼39.48 | 47.74 ▼28.31 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.28 ▲0.08 | 97.98 ▼0.78 | 40.29 ▼1.87 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-detect-for-css/mobile-detect-for-css.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (On mobile), #2 (On tablet)
mobile-detect-for-css/mobile-detect-for-css.php Passed 13 tests
The entry point to "Mobile Detect For CSS" version 1.3 is a PHP file that has certain tags in its header comment area
48 characters long description:
This plugin add the device css class to BODY tag
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
Everything looks great! No dangerous files found in this plugin686 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 168 | 639 | 686 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.02 |
Average class complexity | 72.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.86 |
▷ 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 | 37 | |
▷ Static methods | 9 | 24.32% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin