84% apk-downloader

Code Review | APK Downloader

WordPress plugin APK Downloader scored84%from 54 tests.

About plugin

  • Plugin page: apk-downloader
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 26, 2020
  • Latest release: Sep 9, 2020
  • Number of updates: 12
  • Update frequency: every 8.8 days
  • Top authors: apksupport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /5,009 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.36ms] Passed 4 tests

An overview of server-side resources used by APK Downloader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.17 ▲1.47
Dashboard /wp-admin3.31 ▲0.0148.72 ▲3.63
Posts /wp-admin/edit.php3.36 ▲0.0145.75 ▼4.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.18 ▼13.87
Media Library /wp-admin/upload.php3.24 ▲0.0137.66 ▲3.74

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

APK Downloader: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.21 ▼0.063.57 ▲1.8640.36 ▼3.19
Dashboard /wp-admin2,193 ▲165.55 ▼0.1290.46 ▼11.9785.04 ▲43.43
Posts /wp-admin/edit.php2,119 ▲161.99 ▲0.0235.11 ▼0.9130.64 ▼3.13
Add New Post /wp-admin/post-new.php1,692 ▲16622.54 ▼0.27644.10 ▲23.0873.61 ▲21.75
Media Library /wp-admin/upload.php1,404 ▲14.19 ▲0.0297.58 ▼2.1592.58 ▲49.68

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

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

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 | 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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apk-downloader/includes/apk-option-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/apk-downloader/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apk-downloader/includes/apk-option-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% 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 require attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Screenshot #1 (apk downloader screenshort) image missing
You can take inspiration from this readme.txt

apk-downloader/apk-downloader.php Passed 13 tests

The entry point to "APK Downloader" version 1.0.0 is a PHP file that has certain tags in its header comment area
80 characters long description:
Direct download APK file and install the app manually onto your Android devices.

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
Success! There were no dangerous files found in this plugin915 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/favicon@2x.png6.75KB1.48KB▼ 78.16%