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: ▲0.06MB] [CPU: ▼9.82ms] Passed 4 tests
A check of server-side resources used by AddFunc Mobile Detect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.65 ▼4.44 |
Dashboard /wp-admin | 3.38 ▲0.03 | 47.20 ▼16.96 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.73 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 89.10 ▼15.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.51 ▼2.68 |
Mobile Detect /wp-admin/options-general.php?page=aFmobdtct_options | 3.29 | 29.99 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_mobsitelink |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for AddFunc Mobile Detect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.75 ▲0.40 | 2.01 ▲0.13 | 44.98 ▲0.89 |
Dashboard /wp-admin | 2,193 ▲19 | 5.67 ▲0.07 | 88.18 ▼13.68 | 40.37 ▼4.42 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.03 | 38.09 ▼0.46 | 34.80 ▼0.25 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,719 | 18.75 ▼4.39 | 868.69 ▲181.33 | 65.22 ▲1.57 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.20 ▼0.03 | 96.98 ▼9.60 | 42.41 ▼8.61 |
Mobile Detect /wp-admin/options-general.php?page=aFmobdtct_options | 1,121 | 2.15 | 23.88 | 28.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_mobsitelink
- theysaidso_admin_options
- widget_recent-posts
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=aFmobdtct_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=aFmobdtct_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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addfunc-mobile-detect/addfunc-mobile-detect.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/addfunc-mobile-detect/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
addfunc-mobile-detect/addfunc-mobile-detect.php 92% from 13 tests
Analyzing the main PHP file in "AddFunc Mobile Detect" version 3.1
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 977 characters long)
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
Success! There were no dangerous files found in this plugin1,063 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 175 | 675 | 1,063 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 43 | |
▷ Static methods | 13 | 30.23% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 2 | 4.65% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin