72% wp-to-android-app

Code Review | WP to Android App

WordPress plugin WP to Android App scored72%from 54 tests.

About plugin

  • Plugin page: wp-to-android-app
  • Plugin version: 1.9.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: May 29, 2022
  • Number of updates: 16
  • Update frequency: every 43.5 days
  • Top authors: jabedbd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,046 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.08ms] Passed 4 tests

A check of server-side resources used by WP to Android App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.62 ▲3.76
Dashboard /wp-admin3.34 ▲0.0451.60 ▲1.64
Posts /wp-admin/edit.php3.46 ▲0.1151.91 ▲1.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.25 ▼7.89
Media Library /wp-admin/upload.php3.25 ▲0.0233.17 ▲0.48
Help & About /wp-admin/admin.php?page=wptonativeandroid-help3.2539.56
Build Android App /wp-admin/admin.php?page=wptonativeandroid3.2234.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP to Android App
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,976 ▲21514.74 ▲0.392.28 ▲0.2443.97 ▼1.14
Dashboard /wp-admin2,354 ▲1746.15 ▲0.53114.75 ▲24.5039.41 ▼3.08
Posts /wp-admin/edit.php2,285 ▲1853.31 ▲1.3347.64 ▲8.1135.35 ▼0.99
Add New Post /wp-admin/post-new.php1,547 ▲2123.08 ▲0.16632.28 ▲30.7737.94 ▼26.12
Media Library /wp-admin/upload.php1,428 ▲314.12 ▼0.0779.68 ▼36.5141.48 ▼2.70
Help & About /wp-admin/admin.php?page=wptonativeandroid-help1,0142.9641.2844.04
Build Android App /wp-admin/admin.php?page=wptonativeandroid1,2443.3139.5970.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wptonativeandroid
    • > Notice in wp-content/plugins/wp-to-android-app/includes/settings.php+168
    Trying to access array offset on value of type bool

SRP 50% 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-to-android-app/includes/init.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-to-android-app/wptonativeandroid.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-to-android-app/includes/settings.php:814

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=wptonativeandroid
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wptonativeandroid 158 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for 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 ( === wp-to-android-app === )
Please take inspiration from this readme.txt

wp-to-android-app/wptonativeandroid.php 77% from 13 tests

"WP to Android App" version 1.9.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-to-android-app.php" instead of "wptonativeandroid.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected657 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP320930636
JavaScript11021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png77.81KB45.45KB▼ 41.59%
includes/images/slider.png2.69KB1.96KB▼ 27.17%
includes/images/list.png5.64KB3.68KB▼ 34.76%
images/primary_logo_gray.png73.57KB17.67KB▼ 75.98%