94% wp2androidapp

Code Review | wordpress2androidapp

WordPress plugin wordpress2androidapp scored 94% from 54 tests.

About plugin

  • Plugin page: wp2androidapp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 18, 2015
  • Latest release: Jul 20, 2015
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: sangvish (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,449 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼142.64ms] Passed 4 tests

A check of server-side resources used by wordpress2androidapp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0234.66 ▼1.50
Dashboard /wp-admin3.08 ▲0.0247.17 ▼4.10
Posts /wp-admin/edit.php3.13 ▲0.0243.62 ▼0.89
Add New Post /wp-admin/post-new.php5.45 ▲0.0189.96 ▼559.24
Media Library /wp-admin/upload.php3.03 ▲0.0133.70 ▼5.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for wordpress2androidapp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.88 ▲0.389.50 ▼1.1951.50 ▼2.30
Dashboard /wp-admin2,993 ▲595.86 ▼0.33140.71 ▼17.41113.94 ▲0.03
Posts /wp-admin/edit.php2,759 ▲232.72 ▲0.0061.53 ▼12.9092.78 ▲10.26
Add New Post /wp-admin/post-new.php1,628 ▼24421.86 ▲2.68278.78 ▼90.30107.44 ▼2.56
Media Library /wp-admin/upload.php1,830 ▲235.01 ▼0.01146.54 ▲2.20117.27 ▼5.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp2androidapp/wordpress-2-android-app.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp2androidapp/web2app.php:48

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 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

wp2androidapp/wordpress-2-android-app.php 92% from 13 tests

The primary PHP file in "wordpress2androidapp" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp2androidapp.php" instead of "wordpress-2-android-app.php")

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
Good job! No executable or dangerous file extensions detected118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24674118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot.png33.88KB10.40KB▼ 69.31%