84% uptodown-apk-download-widget

Code Review | Uptodown APK Download Widget

WordPress plugin Uptodown APK Download Widget scored84%from 54 tests.

About plugin

  • Plugin page: uptodown-apk-down...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: May 12, 2016
  • Latest release: Feb 13, 2023
  • Number of updates: 30
  • Update frequency: every 82.3 days
  • Top authors: uptodown (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /77,787 total downloads

Benchmarks

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.04MB] [CPU: ▼3.18ms] Passed 4 tests

Server-side resources used by Uptodown APK Download Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0337.60 ▼0.37
Dashboard /wp-admin3.35 ▲0.0443.54 ▼2.85
Posts /wp-admin/edit.php3.40 ▲0.0446.14 ▼5.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.89 ▼3.14
Media Library /wp-admin/upload.php3.27 ▲0.0432.07 ▼1.36
Uptodown Widget /wp-admin/options-general.php?page=uptodown-widget-settings3.2329.45

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
utd_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Uptodown APK Download Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.69 ▼0.668.98 ▲7.4637.43 ▼1.42
Dashboard /wp-admin2,213 ▲314.86 ▼0.98104.96 ▼0.3538.65 ▼5.77
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.1840.93 ▼0.6635.45 ▼1.85
Add New Post /wp-admin/post-new.php1,550 ▲818.21 ▼0.24589.56 ▼65.0152.15 ▼6.31
Media Library /wp-admin/upload.php1,395 ▲44.17 ▼0.0594.56 ▼7.2642.16 ▼1.03
Uptodown Widget /wp-admin/options-general.php?page=uptodown-widget-settings7792.1825.6726.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • utd_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/uptodown-apk-download-widget/uptodown_wp_widget.php:225

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Result of your widget on a mobile screen screenshot-1.png), #2 (An example of your Uptodown WP Widget on Desktop screenshot-2.jpg)
The official readme.txt might help

uptodown-apk-download-widget/uptodown_wp_widget.php 92% from 13 tests

"Uptodown APK Download Widget" version 0.1.2'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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uptodown-apk-download-widget.php" instead of "uptodown_wp_widget.php")

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
Success! There were no dangerous files found in this plugin1,490 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22182631,471
SVG11019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity87.25
▷ Minimum class complexity5.00
▷ Maximum class complexity197.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods99
▷ Static methods11.01%
▷ Public methods8383.84%
▷ Protected methods1616.16%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
3 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png199.86KB65.77KB▼ 67.09%
assets/icon-128x128.png3.28KB1.86KB▼ 43.16%
assets/icon-256x256.png4.83KB3.14KB▼ 35.12%