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 gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▲1.38ms] Passed 4 tests
This is a short check of server-side resources used by WP Mobile X
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.54 ▼1.07 |
Dashboard /wp-admin | 3.58 ▲0.23 | 50.43 ▼9.67 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 55.38 ▲8.66 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 97.65 ▲7.61 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.61 ▲9.60 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mobile X
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲55 | 14.14 ▲0.00 | 1.69 ▲0.03 | 40.08 ▼2.88 |
Dashboard /wp-admin | 2,210 ▲36 | 5.60 ▼0.06 | 94.65 ▲2.99 | 39.13 ▼1.30 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▲0.03 | 39.03 ▲2.24 | 35.42 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,554 ▲25 | 23.59 ▲0.70 | 607.85 ▲20.03 | 32.22 ▼19.10 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.13 ▼0.04 | 100.30 ▲4.29 | 46.04 ▲5.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 19× 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/wp-mobile-x/themes/mobx-default/archive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-mobile-x/themes/mobx-default/category.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-mobile-x/themes/mobx-default/footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mobile-x/themes/mobx-default/functions-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-mobile-x/themes/mobx-default/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mobile-x/includes/functions-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-mobile-x/themes/mobx-default/404.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-mobile-x/themes/mobx-default/search.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mobile-x/wp-mobile-x.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-mobile-x/themes/mobx-default/tag.php:1
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: wp mobile x, mobile theme
wp-mobile-x/wp-mobile-x.php Passed 13 tests
"WP Mobile X" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
32 characters long description:
Enable a theme for mobile device
Code Analysis 97% from 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 plugin6,714 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,734 |
JavaScript | 4 | 638 | 219 | 1,962 |
PHP | 24 | 172 | 80 | 1,956 |
PO File | 1 | 200 | 496 | 58 |
CSS | 5 | 0 | 8 | 4 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 79.20 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 218.00 |
Average method complexity | 10.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 6 | 14.63% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/mobx-default/screenshot.png | 13.25KB | 5.00KB | ▼ 62.24% |
themes/mobx-default/images/logo.png | 4.96KB | 2.21KB | ▼ 55.35% |