Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.16ms] Passed 4 tests
An overview of server-side resources used by Average Mobile Detect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.23 ▼2.03 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.41 ▼1.20 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.46 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.61 ▼8.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.47 ▼1.41 |
Mobile Detect /wp-admin/options-general.php?page=avrgmobdtct_options | 3.26 | 32.90 |
Server storage [IO: ▲0.09MB] [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, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_mobsitelink |
Browser metrics Passed 4 tests
An overview of browser requirements for Average Mobile Detect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.31 ▼0.94 | 4.63 ▲2.63 | 38.84 ▼9.38 |
Dashboard /wp-admin | 2,216 ▲10 | 4.87 ▼0.03 | 106.87 ▲1.26 | 40.84 ▼4.16 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▲0.00 | 41.02 ▼1.38 | 35.84 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,709 | 26.20 ▲2.65 | 873.94 ▲255.52 | 63.12 ▼0.30 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.28 ▲0.01 | 98.43 ▼5.48 | 41.18 ▼8.82 |
Mobile Detect /wp-admin/options-general.php?page=avrgmobdtct_options | 993 | 2.06 | 25.64 | 36.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_mobsitelink
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=avrgmobdtct_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=avrgmobdtct_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 2× 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/average-mobile-detect/average-mobile-detect.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/average-mobile-detect/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
average-mobile-detect/average-mobile-detect.php 92% from 13 tests
Analyzing the main PHP file in "Average Mobile Detect" version 1.2
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 948 characters long)
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 plugin966 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 166 | 582 | 966 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 13 | 33.33% |
▷ Public methods | 37 | 94.87% |
▷ Protected methods | 2 | 5.13% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 2 | 18.18% |
▷ Class constants | 9 | 81.82% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin