Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼138.43ms] Passed 4 tests
Analyzing server-side resources used by WP MobileReader
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 35.16 ▲14.29 |
Dashboard /wp-admin | 3.23 ▲0.17 | 53.69 ▲4.40 |
Posts /wp-admin/edit.php | 3.28 ▲0.16 | 49.04 ▼6.85 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 91.55 ▼547.53 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 34.34 ▼3.74 |
WP MobileReader /wp-admin/options-general.php?page=wp_android_client | 3.08 | 33.41 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_wpc_prevent_bruteforce |
New WordPress options |
---|
wpc_publish_datetime_next_update |
Browser metrics Passed 4 tests
A check of browser resources used by WP MobileReader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲48 | 15.92 ▼0.14 | 9.90 ▼1.37 | 46.46 ▼3.19 |
Dashboard /wp-admin | 2,973 ▲36 | 5.96 ▼0.02 | 152.45 ▲2.23 | 115.43 ▲16.36 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.73 ▲0.01 | 67.37 ▲0.52 | 86.05 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,620 ▼63 | 21.52 ▲2.76 | 286.96 ▼111.40 | 104.58 ▼4.63 |
Media Library /wp-admin/upload.php | 1,754 ▼56 | 5.05 ▲0.01 | 159.01 ▲12.98 | 115.98 ▼2.24 |
WP MobileReader /wp-admin/options-general.php?page=wp_android_client | 1,252 | 2.49 | 60.70 | 76.39 |
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 did not uninstall successfully, leaving 1 option in the database
- wpc_publish_datetime_next_update
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/interface-for-android-wp-mobilereader/wp_android_client.php
- 46× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.wpcontract.php): failed to open stream: No such file or directory in wp-content/plugins/interface-for-android-wp-mobilereader/classes/database/class.wptablepbf.php on line 3
- > PHP Warning
require_once(WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.utils.php): failed to open stream: No such file or directory in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_get_posts_own.php on line 3
- > PHP Warning
require_once(WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.utils.php): failed to open stream: No such file or directory in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_get_post_single.php on line 11
- > PHP Warning
Use of undefined constant WP_ANDROID_CLIENT_PLUGIN_DIR - assumed 'WP_ANDROID_CLIENT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/interface-for-android-wp-mobilereader/classes/class.wpandroidclient.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_get_posts_guest.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.wpcontract.php' (include_path='.:/usr/share/php') in wp-content/plugins/interface-for-android-wp-mobilereader/classes/database/class.wpdatabasemanager.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_get_posts_own.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WP_ANDROID_CLIENT_PLUGIN_DIR/classes/class.utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_update_post_user.php on line 11
- > PHP Warning
require_once(WP_ANDROID_CLIENT_PLUGIN_DIR/classes/database/class.wpdatabasemanager.php): failed to open stream: No such file or directory in wp-content/plugins/interface-for-android-wp-mobilereader/classes/class.wpandroidclient.php on line 3
- > PHP Warning
Use of undefined constant WP_ANDROID_CLIENT_PLUGIN_DIR - assumed 'WP_ANDROID_CLIENT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/interface-for-android-wp-mobilereader/classes/cmd/class.wpc_get_posts_user.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% 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
3 plugin tags: android, reader, smartphone
interface-for-android-wp-mobilereader/wp_android_client.php 92% from 13 tests
The principal PHP file in "WP MobileReader" v. 2.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("interface-for-android-wp-mobilereader.php" instead of "wp_android_client.php")
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
Success! There were no dangerous files found in this plugin23,348 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 3,943 | 3,202 | 19,284 |
CSS | 6 | 70 | 128 | 2,287 |
PHP | 24 | 544 | 80 | 1,363 |
HTML | 1 | 84 | 15 | 414 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 20 | 20.41% |
▷ Public methods | 73 | 74.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 25.51% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery-1.11.4/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
jquery-1.11.4/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
jquery-1.11.4/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
jquery-1.11.4/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
jquery-1.11.4/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |