Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mobile-smart/mobile-smart-switcher-widget.php+77
Function create_function() is deprecated
Server metrics [RAM: ▼1.48MB] [CPU: ▼60.35ms] Passed 4 tests
Analyzing server-side resources used by Mobile Smart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.94 | 6.03 ▼42.03 |
Dashboard /wp-admin | 2.54 ▼0.81 | 6.71 ▼58.96 |
Posts /wp-admin/edit.php | 2.54 ▼0.82 | 7.82 ▼43.37 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.35 | 7.46 ▼97.04 |
Media Library /wp-admin/upload.php | 2.54 ▼0.69 | 7.51 ▼27.22 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
MobileSmartOptions |
widget_mobilesmartswitcherwidget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Mobile Smart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.74 ▲0.43 | 1.60 ▼0.17 | 46.17 ▲2.48 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.14 | 88.02 ▼5.13 | 43.86 ▲2.94 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.03 | 37.15 ▼5.83 | 33.51 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,548 ▲8 | 23.52 ▲0.37 | 655.15 ▲15.99 | 63.29 ▲6.07 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.13 ▼0.21 | 101.64 ▼0.62 | 47.75 ▼0.19 |
Mobile Smart /wp-admin/mobile-smart.php | 26 | 0.44 | 0.14 | 15.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mobile-smart/mobile-smart-switcher-widget.php+77
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- MobileSmartOptions
- widget_mobilesmartswitcherwidget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/mobile-smart/mobile-smart-theme/comments.php
- > /wp-content/plugins/mobile-smart/mobile-smart-theme/tools/googleanalyticsformobile/php/sample.php
- > /wp-content/plugins/mobile-smart/mobile-smart-theme/tools/googleanalyticsformobile/php/ga.php
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobile-smart/mobile-smart-theme/search.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/mobile-smart/mobile-smart-theme/header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_search_form() in wp-content/plugins/mobile-smart/mobile-smart-theme/sidebar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobile-smart/mobile-smart-theme/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mobile-smart/mobile-smart-theme/single.php:1
- > PHP Notice
Undefined index: HTTP_X_DCMGUID in wp-content/plugins/mobile-smart/mobile-smart-theme/tools/googleanalyticsformobile/php/ga.php on line 141
- > PHP Fatal error
Uncaught Error: Call to undefined function automatic_feed_links() in wp-content/plugins/mobile-smart/mobile-smart-theme/functions.php:8
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-smart/mobile-smart.php on line 40
- > PHP Notice
Undefined index: HTTP_ACCEPT_LANGUAGE in wp-content/plugins/mobile-smart/mobile-smart-theme/tools/googleanalyticsformobile/php/ga.php on line 94
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/mobile-smart/mobile-smart-theme/searchform.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/mobile-smart.php
- > Network (severe)
wp-admin/mobile-smart.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mobile-smart ===
)
mobile-smart/mobile-smart.php 85% from 13 tests
The primary PHP file in "Mobile Smart" version v1.3.16... is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "v1.3.16...")
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected13,430 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 2,170 | 2,841 | 7,661 |
PHP | 20 | 648 | 805 | 3,150 |
HTML | 10 | 340 | 114 | 1,674 |
CSS | 6 | 127 | 98 | 278 |
JSP | 2 | 36 | 38 | 202 |
ASP.NET | 2 | 37 | 3 | 199 |
Perl | 2 | 44 | 36 | 153 |
Markdown | 3 | 28 | 0 | 87 |
Bourne Again Shell | 1 | 4 | 15 | 14 |
XML | 2 | 8 | 15 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 133.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 3 | 2.04% |
▷ Public methods | 115 | 78.23% |
▷ Protected methods | 30 | 20.41% |
▷ Private methods | 2 | 1.36% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 94 | |
▷ Global constants | 94 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mobile-smart-theme/img/l/splash.png | 1.87KB | 1.87KB | 0.10% |
mobile-smart-theme/tools/mobile-bookmark-bubble/images/icon_calendar.png | 3.67KB | 2.75KB | ▼ 25.20% |
mobile-smart-theme/screenshot.png | 4.28KB | 4.06KB | ▼ 5.24% |
mobile-smart-theme/img/l/apple-touch-icon.png | 2.38KB | 1.66KB | ▼ 30.38% |
mobile-smart-theme/img/h/apple-touch-icon.png | 2.97KB | 2.24KB | ▼ 24.53% |