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.19MB] [CPU: ▼7.95ms] Passed 4 tests
An overview of server-side resources used by isMobile() Shortcode for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.49 ▼9.06 |
Dashboard /wp-admin | 3.50 ▲0.19 | 52.56 ▲0.04 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.18 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 85.55 ▼21.72 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.67 ▼1.04 |
isMobile() /wp-admin/plugins.php?page=ismobile_help | 3.38 | 35.58 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
isMobile() Shortcode for WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.24 ▼1.06 | 1.93 ▼0.15 | 42.95 ▼6.71 |
Dashboard /wp-admin | 2,210 ▲22 | 5.89 ▲1.00 | 107.83 ▼7.78 | 39.45 ▼6.45 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▼0.02 | 38.63 ▲2.50 | 34.88 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 23.30 ▲0.28 | 670.92 ▼26.06 | 52.22 ▼13.58 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.08 | 93.51 ▼17.50 | 45.85 ▼2.99 |
isMobile() /wp-admin/plugins.php?page=ismobile_help | 1,031 | 2.01 | 32.72 | 54.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: iphone, desktop, ios, android, tablet...
ismobile/ismobile-shortcode.php 85% from 13 tests
"isMobile() Shortcode for WordPress" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ismobile.php" instead of "ismobile-shortcode.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 244 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,118 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 243 | 872 | 854 |
PO File | 2 | 76 | 80 | 255 |
CSS | 1 | 7 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.83 |
Average class complexity | 141.00 |
▷ Minimum class complexity | 141.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 9 | 25.00% |
▷ Public methods | 33 | 91.67% |
▷ Protected methods | 2 | 5.56% |
▷ Private methods | 1 | 2.78% |
Functions | 6 | |
▷ Named functions | 6 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/mobiledetect-logo.png | 13.38KB | 5.94KB | ▼ 55.61% |