10% radinapp

Code Review | Radin app

WordPress plugin Radin app scored10%from 54 tests.

About plugin

  • Plugin page: radinapp
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Jan 8, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aminmlkzd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/radinapp/radinapplight.php+24
    require_once(wp-content/plugins/radinapplight/vendor/autoload.php): failed to open stream: No such file or directory

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

An overview of server-side resources used by Radin app
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.32 ▲1.71
Dashboard /wp-admin3.31 ▼0.0445.76 ▼18.06
Posts /wp-admin/edit.php3.36 ▲0.0045.55 ▼2.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.58 ▼7.11
Media Library /wp-admin/upload.php3.23 ▲0.0033.94 ▼1.72

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

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

Browser metrics Passed 4 tests

Radin app: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.25 ▼0.111.92 ▲0.0741.30 ▲2.05
Dashboard /wp-admin2,189 ▲95.55 ▼0.0882.33 ▼7.3041.36 ▲0.05
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0235.33 ▲0.6033.47 ▼1.45
Add New Post /wp-admin/post-new.php1,526 ▼223.10 ▼0.21642.29 ▼29.7555.44 ▼1.46
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0193.73 ▼0.8839.76 ▼0.51

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/RelatedProductControllerRadinapp.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/OrderControllerRadinapp.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/HomeControllerRadinapp.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/CountryStateControllerRadinapp.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/BillingControllerRadinapp.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/DownloadsControllerRadinapp.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/ForgetPasswordControllerRadinapp.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/CategoryControllerRadinapp.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radinapp/admin/Loadjs.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'digiappsaz\\API\\BaseController_Radinapp' not found in wp-content/plugins/radinapp/includes/API/Controller/ReviewControllerRadinapp.php:11

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: application android, comments, application woocommerce

radinapp/radinapplight.php 77% from 13 tests

The main PHP file in "Radin app" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "3.3")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("radinapp.php" instead of "radinapplight.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin10,311 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP437003274,611
JavaScript69835564,374
CSS214823798
PO File2132130281
Markdown1320168
JSON20079

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods138
▷ Static methods1410.14%
▷ Public methods13295.65%
▷ Protected methods21.45%
▷ Private methods42.90%
Functions37
▷ Named functions3697.30%
▷ Anonymous functions12.70%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/remove.png4.54KB2.52KB▼ 44.45%
img/edit.png4.41KB2.67KB▼ 39.41%
img/app.png10.69KB8.81KB▼ 17.62%
img/digiappsaz.png0.46KB0.55KB0.00%
img/logo_search.png23.27KB9.55KB▼ 58.98%