79% wp-droid

Code Review | WP Droid

WordPress plugin WP Droid scored79%from 54 tests.

About plugin

  • Plugin page: wp-droid
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 5, 2018
  • Latest release: Sep 21, 2022
  • Number of updates: 5
  • Update frequency: every 295.4 days
  • Top authors: ikvaesolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,055 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.31MB] [CPU: ▼15.62ms] Passed 4 tests

This is a short check of server-side resources used by WP Droid
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3538.52 ▼1.50
Dashboard /wp-admin3.67 ▲0.3747.88 ▼1.09
Posts /wp-admin/edit.php3.78 ▲0.4351.94 ▼1.55
Add New Post /wp-admin/post-new.php3.54 ▼2.3440.88 ▼58.33
Media Library /wp-admin/upload.php3.59 ▲0.3639.75 ▲6.30
Customizer /wp-admin/admin.php?page=wp-droid-api-customizer3.5635.48
App CSS /wp-admin/admin.php?page=wp-droid-app-css3.5633.66
Push Notifications /wp-admin/admin.php?page=wp-droid-push-notifications3.5632.45
API Keys /wp-admin/admin.php?page=wp-droid-api-keys3.5636.74

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Droid: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.28 ▼1.091.86 ▲0.0241.12 ▼3.57
Dashboard /wp-admin2,240 ▲494.84 ▼0.05107.21 ▼10.2541.29 ▼6.64
Posts /wp-admin/edit.php2,126 ▲372.02 ▼0.0247.59 ▲11.3436.18 ▼4.12
Add New Post /wp-admin/post-new.php1,554 ▲1118.52 ▲0.15604.45 ▼41.0861.83 ▲5.74
Media Library /wp-admin/upload.php1,425 ▲374.21 ▼0.0595.05 ▼5.8141.72 ▼1.42
Customizer /wp-admin/admin.php?page=wp-droid-api-customizer7932.0623.5639.72
App CSS /wp-admin/admin.php?page=wp-droid-app-css7932.0624.3234.76
Push Notifications /wp-admin/admin.php?page=wp-droid-push-notifications7932.0623.2527.52
API Keys /wp-admin/admin.php?page=wp-droid-api-keys1,0801.7622.7447.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-droid/includes/helpers/sidebar-common.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-droid/includes/options/customizer-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-droid/includes/default-values.php:230
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-droid/includes/api/wp-droid-api.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-droid/includes/helpers/post-meta-box.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-droid/includes/helpers/license-details.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-droid/includes/menus.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/wp-droid/includes/helpers/invalid-license-layout.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-droid/includes/options/api-settings-options.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 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
4 plugin tags: wp droid, android app, wordpress to android, mobile app

wp-droid/wp-droid.php Passed 13 tests

"WP Droid" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
Customize your Android native mobile app built with WP Droid.

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
No dangerous file extensions were detected4,148 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,2842693,351
CSS29412536
JavaScript1316261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity21.00
▷ Minimum class complexity10.00
▷ Maximum class complexity51.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin