90% mobile-app-editor

Code Review | Mobile App Editor - Wordpress to Android App Builder

WordPress plugin Mobile App Editor - Wordpress to Android App Builder scored90%from 54 tests.

About plugin

  • Plugin page: mobile-app-editor
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2021
  • Latest release: Dec 4, 2022
  • Number of updates: 48
  • Update frequency: every 10.5 days
  • Top authors: androidappbuilder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,195 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by Mobile App Editor - Wordpress to Android App Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2244.11 ▲0.36
Dashboard /wp-admin3.52 ▲0.2249.87 ▼7.14
Posts /wp-admin/edit.php3.64 ▲0.2854.39 ▼2.61
Add New Post /wp-admin/post-new.php6.14 ▲0.2592.94 ▼3.91
Media Library /wp-admin/upload.php3.45 ▲0.2242.61 ▼6.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Mobile App Editor - Wordpress to Android App Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.24 ▼1.302.08 ▲0.2943.24 ▲1.04
Dashboard /wp-admin2,215 ▲305.83 ▼0.08107.90 ▼6.4141.90 ▼2.87
Posts /wp-admin/edit.php2,104 ▲122.04 ▼0.1338.97 ▼2.1534.89 ▼3.52
Add New Post /wp-admin/post-new.php1,543 ▲2423.09 ▼0.05678.66 ▲5.9157.25 ▲0.39
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0597.97 ▼11.8143.01 ▼1.06

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: mobile app builder, create app, android app builder, mobile app, app creator

mobile-app-editor/mobile-app-editor.php 92% from 13 tests

"Mobile App Editor - Wordpress to Android App Builder" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,179 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP122925201,167
JavaScript40010
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.22
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods47.27%
▷ Public methods4683.64%
▷ Protected methods00.00%
▷ Private methods916.36%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/placeholder.png2.41KB0.14KB▼ 94.20%
media/checkbcd1a436590360ed53ac2f46c76e43e4.bcd1a436.png37.93KB12.84KB▼ 66.16%
assets/media/checkbcd1a436590360ed53ac2f46c76e43e4.bcd1a436.png37.93KB12.84KB▼ 66.16%
assets/media/placeholder.png2.41KB0.14KB▼ 94.20%