Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-mobi/index.php+18
Undefined index: tab
Server metrics [RAM: ▼1.82MB] [CPU: ▼51.02ms] Passed 4 tests
An overview of server-side resources used by WpMobi
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.13 ▼7.45 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.43 ▼44.99 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.88 ▼39.07 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.24 ▼93.14 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 6.49 ▼26.89 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WpMobi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲220 | 14.82 ▲0.44 | 1.68 ▼0.57 | 40.03 ▼8.05 |
Dashboard /wp-admin | 2,358 ▲170 | 6.40 ▲1.54 | 118.14 ▲1.63 | 39.65 ▼7.39 |
Posts /wp-admin/edit.php | 2,267 ▲178 | 3.34 ▲1.32 | 52.47 ▲17.40 | 30.63 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.26 ▲0.06 | 603.90 ▼54.93 | 33.56 ▼16.41 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.14 ▼0.08 | 79.85 ▼18.26 | 42.27 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-mobi/index.php+18
Undefined index: tab
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-mobi/admin_panel/views/nav_tabs.php
- > /wp-content/plugins/wp-mobi/admin_panel/views/messages.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_MOBI_PATH - assumed 'WP_MOBI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mobi/admin_panel/views/view_build_and_publish.php on line 5
- > PHP Warning
require_once(WP_MOBI_PATHadmin_panel/views/messages.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mobi/admin_panel/views/general_settings.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'CCore' not found in wp-content/plugins/wp-mobi/src/WpMobiShortcode..class.php:4
- > PHP Notice
Undefined variable: nav_tabs in wp-content/plugins/wp-mobi/admin_panel/views/nav_tabs.php on line 3
- > PHP Warning
Use of undefined constant WP_MOBI_PATH - assumed 'WP_MOBI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mobi/admin_panel/views/general_settings.php on line 5
- > PHP Notice
Undefined variable: success_msgs in wp-content/plugins/wp-mobi/admin_panel/views/messages.php on line 8
- > PHP Warning
require_once(WP_MOBI_PATHadmin_panel/views/messages.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mobi/admin_panel/views/view_build_and_publish.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'CCore' not found in wp-content/plugins/wp-mobi/admin_panel/CWpMobiAdmin.class.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-mobi/admin_panel/views/nav_tabs.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WP_MOBI_PATHadmin_panel/views/messages.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mobi/admin_panel/views/general_settings.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: application, mobile, app, android
wp-mobi/index.php 92% from 13 tests
This is the main PHP file of "WpMobi" version 0.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-mobi.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected957 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 218 | 8 | 776 |
CSS | 2 | 29 | 22 | 132 |
JavaScript | 1 | 10 | 6 | 49 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 1 | 0.96% |
▷ Public methods | 103 | 99.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.96% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/androidlogo.png | 9.99KB | 10.22KB | 0.00% |